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

javax.tools.ToolProvider should detect if jdk.compiler matches the version of java.compiler

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      JSR 199 and JSR 269 are standalone technologies and the primary use case is specific to IDEs that can run on the previous release of the platform e.g. JDK N and implement a Java compiler to support new language feature in JDK N+1.

      java.compiler is upgradeable whereas jdk.compiler and langtools modules are not. javax.tools.ToolProvider::getSystemJavaCompiler should return the java compiler if jdk.compiler matches the version of java.compiler. This also applies to other relevant APIs such as getSystemDocumentationTool.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: