changeset 43878:4b0a3bda61d3

8175048: javadoc does not decode options containing '=' and ':' correctly Reviewed-by: ksrini
author jjg
date Thu, 16 Feb 2017 12:49:44 -0800
parents a12e388192c0
children a6dc784b18a8
files langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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()) {