changeset 13765:0df35f498deb

8228548: Normalize normalization for all Reviewed-by: chegar, rhalade, igerasim, bae
author igerasim
date Wed, 14 Aug 2019 17:24:43 -0700
parents 1c592846b407
children 3b938af3bc70
files src/share/classes/java/net/URL.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/net/URL.java	Mon Aug 26 13:57:51 2019 -0400
+++ b/src/share/classes/java/net/URL.java	Wed Aug 14 17:24:43 2019 -0700
@@ -33,6 +33,7 @@
 import java.io.ObjectInputStream.GetField;
 import java.util.Hashtable;
 import java.util.StringTokenizer;
+import sun.misc.VM;
 import sun.net.util.IPAddressUtil;
 import sun.security.util.SecurityConstants;
 
@@ -1423,7 +1424,9 @@
     }
 
     boolean isBuiltinStreamHandler(URLStreamHandler handler) {
-       return isBuiltinStreamHandler(handler.getClass().getName());
+        Class<?> handlerClass = handler.getClass();
+        return isBuiltinStreamHandler(handlerClass.getName())
+                || VM.isSystemDomainLoader(handlerClass.getClassLoader());
     }
 
     private boolean isBuiltinStreamHandler(String handlerClassName) {