changeset 8916:cb85a6f76bc7

8228548: Normalize normalization for all Reviewed-by: chegar, rhalade, igerasim
author igerasim
date Wed, 14 Aug 2019 17:24:43 -0700
parents 8c511a7fb2d1
children 1ea5b79e5977
files src/share/classes/java/net/URL.java
diffstat 1 files changed, 3 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
@@ -1450,7 +1450,9 @@
     }
 
     boolean isBuiltinStreamHandler(URLStreamHandler handler) {
-       return isBuiltinStreamHandler(handler.getClass().getName());
+        Class<?> handlerClass = handler.getClass();
+        return isBuiltinStreamHandler(handlerClass.getName()) ||
+                handlerClass.getClassLoader() == Object.class.getClassLoader();
     }
 
     private boolean isBuiltinStreamHandler(String handlerClassName) {