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

Verification error in generated lambda classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • hs25
    • None
    • hotspot
    • b49
    • Not verified

        When invoking lambda body methods with invokespecial, we get a verification error:


        Exception in thread "main" java.lang.BootstrapMethodError: call site initialization exception
        ...
        Caused by: java.lang.IllegalAccessException: no such constructor: java.util.stream.IntPipeline$7$1$$Lambda$7.<init>()void/newInvokeSpecial
        ...
        Caused by: java.lang.VerifyError: Bad invokespecial instruction: current class isn't assignable to reference class.

        Exception Details:
          Location:
            java/util/stream/IntPipeline$7$1$$Lambda$7.accept(I)V @5: invokespecial
          Reason:
            Error exists in the bytecode
          Bytecode:
            0000000: 2ab4 000f 1bb7 0016 b1

              acorn Karen Kinnear (Inactive)
              briangoetz Brian Goetz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: