8073667: URL should not use service loader to lookup the jar protocol handler

Reviewed-by: alanb
This commit is contained in:
Chris Hegarty 2015-02-23 17:22:56 +00:00
parent b7d0702188
commit f71f63f2f2

View File

@ -1248,7 +1248,7 @@ public final class URL implements java.io.Serializable {
checkedWithFactory = true;
}
if (handler == null) {
if (handler == null && !protocol.equalsIgnoreCase("jar")) {
handler = lookupViaProviders(protocol);
}
}