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

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

    XMLWordPrintable

    Details

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

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            sadayapalam Srikanth Adayapalam
            Reporter:
            dsimms David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: