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

javax.tools.ToolProvider::getSystemToolClassLoader returns app class loader even if no tool is available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b147
    • Verification:
      Verified

      Description

      The spec for javax.tools.ToolProvider::getSystemToolClassLoader specifies to return null if no tool is provided. ToolProvider now finds javac and javadoc.

      Currently, in jdk9, it always returns the application class loader unconditionally which is a bug.

      On the other hand, what should it return if jdk.compiler or jdk.javadoc is present in the image but not both? spec clarification might be needed.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: