Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8074

Use toolchain to build multi-release JARs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Ideally, the multi-release JARs have to be build with multiple JDKs, for example if JDK13 is the latest one, pre-JDK13 and JDK13.
      Or, alternatively, by latest JDK13 twice, once for src/main/java (using --release 8) and once for src/main/java13 (equivalent to -release 13).

      The issue is with tools.jar, which is not in scope of javac's --release flag [1], the projects which depends on it really need to be built by JDK8. As the workaround, we could used -release 9 to mitigate this issue (since tools.jar was merged into JDK9+) in a short term. The long term solution would be to use toolchain plugin.

      [1] https://bugs.openjdk.java.net/browse/JDK-8199325

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reta Andriy Redko
                Reporter:
                reta Andriy Redko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: