Index: modules/luni/src/main/java/java/net/URLClassLoader.java =================================================================== --- modules/luni/src/main/java/java/net/URLClassLoader.java (revision 513615) +++ modules/luni/src/main/java/java/net/URLClassLoader.java (working copy) @@ -711,7 +711,10 @@ String protocol = currentUrl.getProtocol(); if (protocol.equals("jar")) { //$NON-NLS-1$ jf = resCache.get(currentUrl); - if ((jf == null) && (!invalidUrls.contains(currentUrl))) { + if (jf == null) { + if (invalidUrls.contains(currentUrl)) { + continue; + } // each jf should be found only once // so we do this job in the synchronized block synchronized (lock) {