-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
None
Compiling and running the following code with b98-lambda on Solaris-i586:
import java.util.function.DoubleBinaryOperator;
public class DBB {
public static void main(String[] args) {
final double resultToReturn = 123456.7890123454;
DoubleBinaryOperator operator = (l, r) -> resultToReturn;
}
}
leads to
Exception in thread "main" java.lang.VerifyError: get long/double overflows loca
Exception Details:
Location:
DBB.main([Ljava/lang/String;)V @0: dload_1
Reason:
Local index 1 is invalid
Bytecode:
0000000: 27ba 0002 0000 4eb1
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2567)
at java.lang.Class.getMethod0(Class.java:2808)
at java.lang.Class.getMethod(Class.java:1706)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:555
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:537)
The problem is not reproducible with b98-lambda on Windows
The problem is not reproducible with regular b98 on solaris
Filing initially versus java.util.stream for further re-dispatching to compiler or VM.
The following JCK test fails:
api/java_util/function/DoubleBinaryOperator/index.html#General
import java.util.function.DoubleBinaryOperator;
public class DBB {
public static void main(String[] args) {
final double resultToReturn = 123456.7890123454;
DoubleBinaryOperator operator = (l, r) -> resultToReturn;
}
}
leads to
Exception in thread "main" java.lang.VerifyError: get long/double overflows loca
Exception Details:
Location:
DBB.main([Ljava/lang/String;)V @0: dload_1
Reason:
Local index 1 is invalid
Bytecode:
0000000: 27ba 0002 0000 4eb1
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2567)
at java.lang.Class.getMethod0(Class.java:2808)
at java.lang.Class.getMethod(Class.java:1706)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:555
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:537)
The problem is not reproducible with b98-lambda on Windows
The problem is not reproducible with regular b98 on solaris
Filing initially versus java.util.stream for further re-dispatching to compiler or VM.
The following JCK test fails:
api/java_util/function/DoubleBinaryOperator/index.html#General