JDK-8175346 : javadoc does not handle Locations correctly with --patch-module
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-02-22
  • Updated: 2017-03-25
  • Resolved: 2017-03-17
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 10 JDK 9
10Fixed 9 b162Fixed
Related Reports
Blocks :  
Blocks :  
Blocks :  
Duplicate :  
Description
Supposing one has the following command:
% javadoc --patch-module=java.base=/some/directory/src/share/classes -d out.dir java.lang.invoke
the location is not computed correctly
The reason is because:
http://hg.openjdk.java.net/jdk9/dev/langtools/file/414788bbc0ab/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ElementsTable.java#l205
The location will be set to CLASS_PATH and no sources will be found to document.

javac must be able to handle the --patch-module and return an appropriate location.