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

[premain] NullPointerException with LambdaWithUseImplMethodHandle.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • hotspot

      When running test/hotspot/jtreg/runtime/cds/appcds/LambdaWithUseImplMethodHandle.java with -vmoptions:-XX:+AOTClassLinking:

      Exception in thread "main" java.lang.NullPointerException
      at java.base/java.util.Optional.ifPresent(Optional.java:178)
      at pkg2.Child.test(Unknown Source)
      at LambdaWithUseImplMethodHandleApp.main(LambdaWithUseImplMethodHandleApp.java:32)

      =====================
      The above failure has the same root cause as reported elsewhere:

      https://mail.openjdk.org/pipermail/leyden-dev/2024-September/000987.html
      https://github.com/tristantarrant/elytron-leyden
      https://github.com/ashu-mehra/leyden-testcase/

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: