changeset 29098:fd65e2764b56

8073667: URL should not use service loader to lookup the jar protocol handler Reviewed-by: alanb
author chegar
date Mon, 23 Feb 2015 17:22:56 +0000
parents 01a70c01f5a1
children 766801b4d95d
files jdk/src/java.base/share/classes/java/net/URL.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
             }
         }