--- 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);