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

[lworld] ValueBootstrapMethods::isSubstitutable0 should do null check and type check

XMLWordPrintable

      Exception in thread "main" java.lang.InternalError: java.lang.NullPointerException: MyValue2 is an inline class
      at java.base/java.lang.invoke.ValueBootstrapMethods.isSubstitutable0(ValueBootstrapMethods.java:555)
      at Test.main(Test.java:37)
      Caused by: java.lang.NullPointerException: MyValue2 is an inline class
      at java.base/java.lang.Class.cast(Class.java:3730)
      at java.base/java.lang.invoke.ValueBootstrapMethods.isSubstitutable0(ValueBootstrapMethods.java:551)
      ... 1 more

      The reproducible test case is at: https://bugs.openjdk.java.net/secure/attachment/85600/Test.java

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: