jdk/src/share/classes/sun/security/x509/URIName.java
changeset 15268 d815f9973d97
parent 14342 8435a30053c1
child 23010 6dadb192ad81
--- a/jdk/src/share/classes/sun/security/x509/URIName.java	Wed Jan 16 12:09:35 2013 +0000
+++ b/jdk/src/share/classes/sun/security/x509/URIName.java	Wed Jan 16 09:51:21 2013 -0500
@@ -30,7 +30,6 @@
 import java.net.URISyntaxException;
 
 import sun.security.util.*;
-import sun.net.www.ParseUtil;
 
 /**
  * This class implements the URIName as required by the GeneralNames
@@ -107,13 +106,7 @@
         try {
             uri = new URI(name);
         } catch (URISyntaxException use) {
-            try {
-                // Try parsing the URI again after encoding/escaping
-                // any illegal characters
-                uri = new URI(ParseUtil.encodePath(name));
-            } catch (URISyntaxException use2) {
-                throw new IOException("invalid URI name:" + name, use2);
-            }
+            throw new IOException("invalid URI name:" + name, use);
         }
         if (uri.getScheme() == null) {
             throw new IOException("URI name must include scheme:" + name);