diff options
author | acolyer <acolyer> | 2006-04-07 10:51:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2006-04-07 10:51:19 +0000 |
commit | 5e01ed2cb2cd9cdeb59c42868cbd7a58243ea771 (patch) | |
tree | 2930011bf8a1f49794b7be40f359e86ae2a02d08 /weaver5 | |
parent | b66a97f68648e8da7e11b194e8e9604de5e201fe (diff) | |
download | aspectj-5e01ed2cb2cd9cdeb59c42868cbd7a58243ea771.tar.gz aspectj-5e01ed2cb2cd9cdeb59c42868cbd7a58243ea771.zip |
must use the same world when creating a pointcut parser
Diffstat (limited to 'weaver5')
-rw-r--r-- | weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |