-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
8, 9
-
generic
-
generic
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux artemis 4.9.10-100.fc24.x86_64 #1 SMP Wed Feb 15 18:35:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
ToolProvider.getSystemDocumentationTool().isSupportedOption("--allow-script-in-comments")
returns -1, should be 0 for this java version.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(System.getProperty("java.version"));
System.out.println(ToolProvider.getSystemDocumentationTool()
.isSupportedOption("--allow-script-in-comments"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
1.8.0_121
0
ACTUAL -
1.8.0_121
-1
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
/**
*
*/
package test;
import javax.tools.ToolProvider;
/**
* @author mnl
*
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println(System.getProperty("java.version"));
System.out.println(ToolProvider.getSystemDocumentationTool()
.isSupportedOption("--allow-script-in-comments"));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Class.forName('com.sun.tools.doclets.formats.html.ConfigurationImpl')
.newInstance().optionLength('--allow-script-in-comments') seems to work
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux artemis 4.9.10-100.fc24.x86_64 #1 SMP Wed Feb 15 18:35:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
ToolProvider.getSystemDocumentationTool().isSupportedOption("--allow-script-in-comments")
returns -1, should be 0 for this java version.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(System.getProperty("java.version"));
System.out.println(ToolProvider.getSystemDocumentationTool()
.isSupportedOption("--allow-script-in-comments"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
1.8.0_121
0
ACTUAL -
1.8.0_121
-1
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
/**
*
*/
package test;
import javax.tools.ToolProvider;
/**
* @author mnl
*
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println(System.getProperty("java.version"));
System.out.println(ToolProvider.getSystemDocumentationTool()
.isSupportedOption("--allow-script-in-comments"));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Class.forName('com.sun.tools.doclets.formats.html.ConfigurationImpl')
.newInstance().optionLength('--allow-script-in-comments') seems to work
- relates to
-
JDK-8176106 explain limitations of DocumentationTool.isSupportedOption
-
- New
-