JDK-8181878 : javadoc should support/ignore --add-opens
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-06-09
  • Updated: 2021-09-02
  • Resolved: 2018-01-11
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 11
10 b40Fixed 11Fixed
Related Reports
Relates :  
Description
For compatibility with related tools (javac, launcher), the javadoc tool should support and noisily ignore --add-opens.

This could be done by just passing the option down to javac, and have it noisily ignore the option,
Comments
URL: http://hg.openjdk.java.net/jdk/jdk10/rev/0da9fb7d7d04 User: jjg Date: 2018-01-11 23:44:26 +0000
11-01-2018

In javac, it is a hidden mostly no-op option Options.java ADD_OPENS("--add-opens", null, null, HIDDEN, BASIC), Arguments.java if (lintOptions && options.isSet(Option.ADD_OPENS)) { log.warning(LintCategory.OPTIONS, Warnings.AddopensIgnored); } But javadoc disables that check: Start.java // Make sure no obsolete source/target messages are reported try { com.sun.tools.javac.main.Option.XLINT_CUSTOM.process(getOptionHelper(), "-Xlint:-options"); } catch (com.sun.tools.javac.main.Option.InvalidValueException ignore) { }
22-12-2017