diff options
author | aclement <aclement> | 2006-10-12 19:58:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-10-12 19:58:09 +0000 |
commit | e6a707af677f170f3dbf41081f6ff296b90437d1 (patch) | |
tree | fba0b4487b2ff98d9df0864aaa882f4ead167684 /weaver5 | |
parent | f80ae0089b2a8f57653348b76ef1b7f89aebf2ef (diff) | |
download | aspectj-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.java | 6 |
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; } |