aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-12 19:58:09 +0000
committeraclement <aclement>2006-10-12 19:58:09 +0000
commite6a707af677f170f3dbf41081f6ff296b90437d1 (patch)
treefba0b4487b2ff98d9df0864aaa882f4ead167684 /weaver5
parentf80ae0089b2a8f57653348b76ef1b7f89aebf2ef (diff)
downloadaspectj-e6a707af677f170f3dbf41081f6ff296b90437d1.tar.gz
aspectj-e6a707af677f170f3dbf41081f6ff296b90437d1.zip
test and fix for 160674: simpler strategy for loading bytecode on SAPBEFORE_133532
Diffstat (limited to 'weaver5')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
index be8d9fd62..c89278b2b 100644
--- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
+++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java
@@ -24,8 +24,8 @@ import java.util.Set;
import org.aspectj.apache.bcel.classfile.JavaClass;
import org.aspectj.apache.bcel.classfile.LocalVariable;
import org.aspectj.apache.bcel.classfile.LocalVariableTable;
+import org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository;
import org.aspectj.apache.bcel.util.Repository;
-import org.aspectj.apache.bcel.util.ClassLoaderRepository;
import org.aspectj.weaver.ResolvedType;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.World;
@@ -45,7 +45,9 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder {
}
public void setClassLoader(ClassLoader aLoader) {
- this.bcelRepository = new ClassLoaderRepository(aLoader);
+ // TODO: No easy way to ask the world factory for the right kind of repository so
+ // default to the safe one! (pr160674)
+ this.bcelRepository = new NonCachingClassLoaderRepository(aLoader);
this.classLoader = aLoader;
}