JDK-8217868 : Crash for overlap between source path and patch module path
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: x86_64
  • Submitted: 2019-01-27
  • Updated: 2019-03-15
  • Resolved: 2019-03-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b11Fixed
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows [Version 10.0.17763.292]
JDK 11.0.2
JDK 12-ea+29
JDK 13-ea+5

A DESCRIPTION OF THE PROBLEM :
1. Run testcase
2. javadoc tool crashes with:

javadoc: error - fatal error encountered: java.lang.NullPointerException
javadoc: error - Please file a bug against the javadoc tool via the Java bug reporting page
(http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
for duplicates. Include error messages and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
        at java.base/java.util.Objects.requireNonNull(Objects.java:221)
        at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.nullCheck(BaseFileManager.java:497)
        at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.contains(JavacFileManager.java:955)
        at jdk.compiler/com.sun.tools.javac.comp.Modules.checkSourceLocation(Modules.java:539)
        at jdk.compiler/com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:529)
        at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:267)
        at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:248)
        at jdk.javadoc/jdk.javadoc.internal.tool.JavadocTool.getEnvironment(JavadocTool.java:201)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:576)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:432)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:345)
        at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
        at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
2 errors


FREQUENCY : always



Comments
Webrev: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-February/012937.html
07-02-2019

The issue is reproducible in JDK 9, 11.0.1, 13+3. >"D:\JDK\13\13+3\jdk-13\bin\javadoc.exe" @options @packages @argfile Loading source file ..\..\src\main\java\module-info.java... Loading source files for package module1... javadoc: error - fatal error encountered: java.lang.NullPointerException javadoc: error - Please file a bug against the javadoc tool via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include error messages and the following diagnostic in your report. Thank you. java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:221) at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.nullCheck(BaseFileManager.java:497) at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.contains(JavacFileManager.java:955) at jdk.compiler/com.sun.tools.javac.comp.Modules.checkSourceLocation(Modules.java:539) at jdk.compiler/com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:529) at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:267) at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:248) at jdk.javadoc/jdk.javadoc.internal.tool.JavadocTool.getEnvironment(JavadocTool.java:201) at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:576) at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:432) at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:345) at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63) at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52) 2 errors Could not check in JDK 8 as '--patch-module' is not valid flag in JDK 8.
28-01-2019