8175048: javadoc does not decode options containing '=' and ':' correctly
authorjjg
Thu, 16 Feb 2017 12:49:44 -0800
changeset 43878 4b0a3bda61d3
parent 43877 a12e388192c0
child 43879 a6dc784b18a8
8175048: javadoc does not decode options containing '=' and ':' correctly Reviewed-by: ksrini
langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java
--- 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()) {