Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020406

b98-lambda: java.lang.VerifyError: get long/double overflows local / DoubleBinaryOperator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 8
    • None
    • core-libs

      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


            rfield Robert Field (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: