aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mnutt...@apache.org
Subject svn commit: r1604727 - /aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java
Date Mon, 23 Jun 2014 09:48:58 GMT
Author: mnuttall
Date: Mon Jun 23 09:48:57 2014
New Revision: 1604727

URL: http://svn.apache.org/r1604727
Log:
Aries-1217: ProxySubclassGenerator doesn't compile

Modified:
    aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java

Modified: aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java?rev=1604727&r1=1604726&r2=1604727&view=diff
==============================================================================
--- aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java
(original)
+++ aries/trunk/proxy/proxy-impl/src/test/java/org/apache/aries/blueprint/proxy/ProxySubclassGeneratorTest.java
Mon Jun 23 09:48:57 2014
@@ -33,7 +33,9 @@ import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.Callable;
 
@@ -273,6 +275,14 @@ public class ProxySubclassGeneratorTest 
       importedPackages = imported != null ? Collections.singleton(imported) : Collections.<String>emptySet();
       parents = parent != null ? Collections.singletonList(parent) : Collections.<ClassLoader>emptyList();
     }
+    
+    final Map<String, Object> clLocks = new HashMap<String, Object>();
+    private synchronized Object getClassLoadingLock (String name) {
+    	if (!clLocks.containsKey(name)) { 
+    		clLocks.put(name, new Object());
+    	}
+    	return clLocks.get(name);
+    }
 
     @Override
     protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
{



Mime
View raw message