JDK-8175048 : javadoc does not decode options containing '=' and ':' correctly
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2017-02-15
  • Updated: 2017-02-23
  • Resolved: 2017-02-16
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 b158Fixed
Related Reports
Relates :  
Description
ToolOption.get does not detect the option name correctly. It should use the first of ':', '=', not prefer ':' over '='.

    static ToolOption get(String name) {
        String oname = name;
        if (name.contains(":")) {
            oname = name.substring(0, name.indexOf(':') + 1);
        } else if (name.contains("=")) {
            oname = name.substring(0, name.indexOf('='));
        }
Comments
Added modularization m4 labels since the fix is required to be able to use --patch-module.
15-02-2017

Caused by changes in JDK-8152818 It looks like the fault was caused when adding support for -Xmodule: That option has gone away. There should not be any options that require a ':' separator, so it may be easiest to simply remove ':' as a separator. Altenatively, '=' as a separator is only allowed for options beginning '--'.
15-02-2017