changeset 4001:890da24e5d30

8175048: javadoc does not decode options containing '=' and ':' correctly Reviewed-by: ksrini
author jjg
date Thu, 16 Feb 2017 12:49:44 -0800
parents 525c59180d53
children 4eb737a8d439
files 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/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java	Thu Feb 16 18:29:03 2017 +0000
+++ b/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()) {