< prev index next >

test/java/lang/ClassLoader/deadlock/DelegatingLoader.java

Print this page

        

*** 73,93 **** public Class loadClass(String className, boolean resolve) throws ClassNotFoundException { for (int i = 0; i < delClasses.length; i++) { if (delClasses[i].equals(className)) { ! Starter.log("Delegating class loading for " + className); try { Thread.sleep(500); } catch (InterruptedException ie) { return null; } return delLoader.loadClass(className, resolve); } } ! Starter.log("Loading local class " + className); // synchronized (getClassLoadingLock(className)) { return super.loadClass(className, resolve); // } } } --- 73,93 ---- public Class loadClass(String className, boolean resolve) throws ClassNotFoundException { for (int i = 0; i < delClasses.length; i++) { if (delClasses[i].equals(className)) { ! DelegateTest.log("Delegating class loading for " + className); try { Thread.sleep(500); } catch (InterruptedException ie) { return null; } return delLoader.loadClass(className, resolve); } } ! DelegateTest.log("Loading local class " + className); // synchronized (getClassLoadingLock(className)) { return super.loadClass(className, resolve); // } } }
< prev index next >