Log Message
Avoid ClassLoader.loadClass
Modified Paths
Diff
Modified: trunk/xstream/src/test/com/thoughtworks/xstream/core/util/WeakCacheTest.java (2093 => 2094)
--- trunk/xstream/src/test/com/thoughtworks/xstream/core/util/WeakCacheTest.java 2013-07-04 23:21:01 UTC (rev 2093)
+++ trunk/xstream/src/test/com/thoughtworks/xstream/core/util/WeakCacheTest.java 2013-07-06 12:23:38 UTC (rev 2094)
@@ -134,7 +134,7 @@
public void testSelfReferencingEntriesWithObjectsFromPermSpace() throws MalformedURLException, ClassNotFoundException, SecurityException, NoSuchFieldException, InterruptedException {
File proxyToys = new File("target/lib/proxytoys-0.2.1.jar");
ClassLoader classLoader = new URLClassLoader(new URL[]{proxyToys.toURI().toURL()}, getClass().getClassLoader());
- Class simpleReferenceType = classLoader.loadClass("com.thoughtworks.proxy.kit.SimpleReference");
+ Class simpleReferenceType = Class.forName("com.thoughtworks.proxy.kit.SimpleReference", true, classLoader);
Field instance = simpleReferenceType.getDeclaredField("instance");
ReferenceQueue refQueue = new ReferenceQueue();
To unsubscribe from this list please visit:
