[lworld] NullPointerException in orElse because Runtime$Version.build() is null

XMLWordPrintable

      We get
      ```
      java.util.Optional.orElse(Object)" because the return value of "java.lang.Runtime$Version.build()" is null
      ```

      in quite some tests:
      - compiler/valhalla/inlinetypes/TestValueConstruction.java#DontInlineObjectInitDeoptimizeALot
      - compiler/valhalla/inlinetypes/TestUnloadedInlineTypeField.java
      - compiler/valhalla/inlinetypes/TestValueConstruction.java#DeoptimizeALot
      - compiler/valhalla/inlinetypes/TestOnStackReplacement.java
      - compiler/valhalla/inlinetypes/TestNullableInlineTypes.java
      - compiler/valhalla/inlinetypes/TestIntrinsics.java
      [...]

      With or without stress flags, like nothing more than "-server -Xcomp".

      Different failure mode:

      Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Optional.get()" because "this.build" is null
      at java.base/java.lang.Runtime$Version.toString(Runtime.java:1390)
      at jdk.test.lib.Utils.<clinit>(Utils.java:172)

            Assignee:
            Matias Saavedra Silva
            Reporter:
            Marc Chevalier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: