8175048: javadoc does not decode options containing '=' and ':' correctly
Reviewed-by: ksrini
--- a/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java Thu Feb 16 18:29:03 2017 +0000
+++ b/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java Thu Feb 16 12:49:44 2017 -0800
@@ -412,9 +412,7 @@
static ToolOption get(String name) {
String oname = name;
- if (name.contains(":")) {
- oname = name.substring(0, name.indexOf(':') + 1);
- } else if (name.contains("=")) {
+ if (name.startsWith("--") && name.contains("=")) {
oname = name.substring(0, name.indexOf('='));
}
for (ToolOption o : values()) {