src/share/classes/javax/crypto/JceSecurity.java

Print this page

        

*** 217,226 **** --- 217,227 ---- /* * Retuns the CodeBase for the given class. */ static URL getCodeBase(final Class<?> clazz) { + synchronized (codeBaseCacheRef) { URL url = codeBaseCacheRef.get(clazz); if (url == null) { url = AccessController.doPrivileged(new PrivilegedAction<URL>() { public URL run() { ProtectionDomain pd = clazz.getProtectionDomain();
*** 235,244 **** --- 236,246 ---- }); codeBaseCacheRef.put(clazz, url); } return (url == NULL_URL) ? null : url; } + } private static void setupJurisdictionPolicies() throws Exception { String javaHomeDir = System.getProperty("java.home"); String sep = File.separator; String pathToPolicyJar = javaHomeDir + sep + "lib" + sep +