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
+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