[lworld] Incorrect result of acmp with flat, nullable value class field

XMLWordPrintable

      Attached Test.java fails due to an incorrect result of acmp:

      java --enable-preview -Xint Test.java
      Exception in thread "main" java.lang.RuntimeException: Incorrect result 'true' for NestedValue(null) == NestedValue(IntValue(0, bits=0x0))
      at Test.main(Test.java:59)

      It passes without field flattening though:

      java --enable-preview -Xint -XX:-UseFieldFlattening Test.java

      Also happens with -XX:+UseAltSubstitutabilityMethod.

        1. Test.java
          2 kB
          Tobias Hartmann

            Assignee:
            Frederic Parain
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: