[lworld] Field::get should return default value instead of null on non-flattened inline field

XMLWordPrintable

      Running EmptyInlineTest with -XX:InlineFieldMaxFlatSize=0 (also with -Xint) fails with:

      java.lang.NullPointerException: There cannot be a NullPointerException at bci 478 of method void runtime.valhalla.inlinetypes.EmptyInlineTest.main(java.lang.String[])
      at runtime.valhalla.inlinetypes.EmptyInlineTest.main(EmptyInlineTest.java:132)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      java.lang.RuntimeException: Reflection tests failed: java.lang.NullPointerException: There cannot be a NullPointerException at bci 478 of method void runtime.valhalla.inlinetypes.EmptyInlineTest.main(java.lang.String[])
      at runtime.valhalla.inlinetypes.EmptyInlineTest.main(EmptyInlineTest.java:141)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)


            Assignee:
            Mandy Chung (Inactive)
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: