From 5e01ed2cb2cd9cdeb59c42868cbd7a58243ea771 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 7 Apr 2006 10:51:19 +0000 Subject: [PATCH] must use the same world when creating a pointcut parser --- .../reflect/Java15ReflectionBasedReferenceTypeDelegate.java | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.5