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

XMLWordPrintable

    • b147
    • Verified

      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.

            Assignee:
            Jonathan Gibbons
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: