diff options
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/main/java/org/aspectj/weaver/reflect/Java15AnnotationFinder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weaver/src/main/java/org/aspectj/weaver/reflect/Java15AnnotationFinder.java b/weaver/src/main/java/org/aspectj/weaver/reflect/Java15AnnotationFinder.java index ef437b724..e0e1af8d2 100644 --- a/weaver/src/main/java/org/aspectj/weaver/reflect/Java15AnnotationFinder.java +++ b/weaver/src/main/java/org/aspectj/weaver/reflect/Java15AnnotationFinder.java @@ -51,7 +51,7 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder { //Use single instance of Repository and ClassLoader public static final boolean useSingleInstances = - System.getProperty("org.aspectj.apache.bcel.useSingleRepositoryInstance", "true").equalsIgnoreCase("true"); + System.getProperty("org.aspectj.apache.bcel.useSingleRepositoryInstance", "false").equalsIgnoreCase("true"); static { try { @@ -77,13 +77,13 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder { if (useSingleInstances && staticBcelRepository == null) staticBcelRepository = new ClassLoaderRepository(getClassLoader()); else - this.bcelRepository = new ClassLoaderRepository(getClassLoader()); + this.bcelRepository = new ClassLoaderRepository(classLoaderRef); } else { if (useSingleInstances && staticBcelRepository == null) staticBcelRepository = new NonCachingClassLoaderRepository(getClassLoader()); else - this.bcelRepository = new NonCachingClassLoaderRepository(getClassLoader()); + this.bcelRepository = new NonCachingClassLoaderRepository(classLoaderRef); } } |