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

[lworld] Update InnerClassLambdaMetafactory to add ValueTypes attribute in generated class

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      java.lang.IncompatibleClassChangeError
              at VarHandleTestAccessBoolean$$Lambda$108/0x000000080011cc40.run(<Unknown>:1000008)
              at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:126)
              at VarHandleBaseTest.checkUOE(VarHandleBaseTest.java:50)
              at VarHandleTestAccessBoolean.testValueTypeFieldUnsupported(VarHandleTestAccessBoolean.java:317)
              at VarHandleTestAccessBoolean.lambda$accessTestCaseProvider$12(VarHandleTestAccessBoolean.java:221)
              at VarHandleTestAccessBoolean$$Lambda$49/0x0000000800103c40.action(<Unknown>:1000004)
              at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:408)
              at VarHandleTestAccessBoolean.testAccess(VarHandleTestAccessBoolean.java:234)


      UOE is thrown as expected when lambda is not involved.

      java.lang.UnsupportedOperationException
      at java.base/java.lang.invoke.VarForm.getMemberName(VarForm.java:92)
      at java.base/java.lang.invoke.VarHandleGuards.guard_LI_V(VarHandleGuards.java:114)
      at VarHandleTestAccessBoolean.testValueTypeFieldUnsupported(VarHandleTestAccessBoolean.java:311)
      at VarHandleTestAccessBoolean.lambda$accessTestCaseProvider$12(VarHandleTestAccessBoolean.java:221)
      at VarHandleTestAccessBoolean$$Lambda$49/0x0000000800103c40.action(<Unknown>:1000004)
      at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:408)
      at VarHandleTestAccessBoolean.testAccess(VarHandleTestAccessBoolean.java:234)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: