RFR:JDK-8190391:nashorn: "!!" of nonzero even integer var becomes false when returned

2017-11-12 Thread Priya Lakshmi Muthuswamy
Hi, Please review JDK-8190391 : nashorn: "!!" of nonzero even integer var becomes false when returned JBS : https://bugs.openjdk.java.net/browse/JDK-8190391 webrev : http://cr.openjdk.java.net/~pmuthuswamy/8190391/webrev.00/ Thanks, Priya

Re: RFR:JDK-8190391:nashorn: "!!" of nonzero even integer var becomes false when returned

2017-11-12 Thread Attila Szegedi
+1. Nice catch. Feels like an implementation detail, but the JVM specification is indeed unclear on the behavior in case there's a bytecode method doing this: public static func(I)Z 0 iload 0 1 ireturn I went spelunking in the JVM spec, and the closest I could find is in section