[lworld] Merge of JDK 17 causing javac type casting issues with reference projections

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: tools

      https://github.com/openjdk/valhalla/pull/316 is a merge from mainline from mid-December to Jan 19th, there were very few merge conflicts outside of Hotspot, but yes the JDK version was flipped (which I assume is the root cause here)...

      Noted a number of test compilation failures involving casts with reference projections. The following langtools tests also fail:

      tools/javac/valhalla/lworld-values/BoxValCastTest.java
      tools/javac/valhalla/lworld-values/CheckSync.java
      tools/javac/valhalla/lworld-values/ConditionalInlineTypeTest.java
      tools/javac/valhalla/lworld-values/ConditionalTypeTest.java
      tools/javac/valhalla/lworld-values/GenericsAndValues5.java
      tools/javac/valhalla/lworld-values/IntercastTest.java
      tools/javac/valhalla/lworld-values/IntercastTest2.java
      tools/javac/valhalla/lworld-values/ProjectionRelationsTest.java
      tools/javac/valhalla/lworld-values/TypeRelationsNegativeTest.java
      tools/javac/valhalla/lworld-values/TypeRelationsTest.java
      tools/javac/valhalla/lworld-values/ValuesAsRefs.java

      For local testing, clone: https://github.com/MrSimms/valhalla/tree/lworld_merge_jdk_20210119_0

            Assignee:
            Srikanth Adayapalam (Inactive)
            Reporter:
            David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: