]> source.dussan.org Git - aspectj.git/commitdiff
must use the same world when creating a pointcut parser
authoracolyer <acolyer>
Fri, 7 Apr 2006 10:51:19 +0000 (10:51 +0000)
committeracolyer <acolyer>
Fri, 7 Apr 2006 10:51:19 +0000 (10:51 +0000)
weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java

index a5c57f13f6e120fc718ee0a6733c5d6d6f235155..2ba28c9a45dd2cb35e9be195e5bf46b6ccdaa964 100644 (file)
@@ -245,6 +245,10 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends
                        Pointcut[] pcs = this.myType.getDeclaredPointcuts();
                        pointcuts = new ResolvedMember[pcs.length];
                        PointcutParser parser = PointcutParser.getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution(classLoader);
+                       World world = getWorld();
+                       if (world instanceof ReflectionWorld) {
+                               parser.setWorld((ReflectionWorld)getWorld());
+                       }
                        for (int i = 0; i < pcs.length; i++) {
                                AjType<?>[] ptypes = pcs[i].getParameterTypes();
                                String[] pnames = pcs[i].getParameterNames();