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

NPE in ToolProvider.getSystemJavaCompiler

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b30

      Backports

        Description

        It seems that after the fix for JDK-8194901 NPE may happen if some JavaCompiler is registered in an unnamed module.

        java.lang.NullPointerException at java.compiler@11.0.4/javax.tools.ToolProvider.lambda$matches$0(ToolProvider.java:141) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.compiler@11.0.4/javax.tools.ToolProvider.matches(ToolProvider.java:143) at java.compiler@11.0.4/javax.tools.ToolProvider.getSystemTool(ToolProvider.java:121) at java.compiler@11.0.4/javax.tools.ToolProvider.getSystemJavaCompiler(ToolProvider.java:61)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jjg Jonathan Gibbons
                Reporter:
                eushakov Egor Ushakov
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: