8073667: URL should not use service loader to lookup the jar protocol handler
authorchegar
Mon, 23 Feb 2015 17:22:56 +0000
changeset 29098 fd65e2764b56
parent 29097 01a70c01f5a1
child 29099 766801b4d95d
8073667: URL should not use service loader to lookup the jar protocol handler Reviewed-by: alanb
jdk/src/java.base/share/classes/java/net/URL.java
--- a/jdk/src/java.base/share/classes/java/net/URL.java	Mon Feb 23 15:48:20 2015 +0000
+++ b/jdk/src/java.base/share/classes/java/net/URL.java	Mon Feb 23 17:22:56 2015 +0000
@@ -1248,7 +1248,7 @@
                 checkedWithFactory = true;
             }
 
-            if (handler == null) {
+            if (handler == null && !protocol.equalsIgnoreCase("jar")) {
                 handler = lookupViaProviders(protocol);
             }
         }