From: acolyer Date: Fri, 7 Apr 2006 10:51:19 +0000 (+0000) Subject: must use the same world when creating a pointcut parser X-Git-Tag: V1_5_1a_final~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e01ed2cb2cd9cdeb59c42868cbd7a58243ea771;p=aspectj.git must use the same world when creating a pointcut parser --- diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java index a5c57f13f..2ba28c9a4 100644 --- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java +++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java @@ -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();