summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java b/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
index 0d3cb2a5f..8a6665df2 100644
--- a/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
+++ b/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
@@ -67,7 +67,7 @@ public class PerThisOrTargetPointcutVisitor extends IdentityPointcutVisitor {
if (m_isTarget) {
return MAYBE;
} else {
- return node.getAnnotationTypePattern();
+ return new AnyWithAnnotationTypePattern( node.getAnnotationTypePattern());
}
}
@@ -125,9 +125,9 @@ public class PerThisOrTargetPointcutVisitor extends IdentityPointcutVisitor {
public Object visit(ThisOrTargetAnnotationPointcut node, Object data) {
if (m_isTarget && !node.isThis()) {
- return node.getAnnotationTypePattern();
+ return new AnyWithAnnotationTypePattern( node.getAnnotationTypePattern());
} else if (!m_isTarget && node.isThis()) {
- return node.getAnnotationTypePattern();
+ return new AnyWithAnnotationTypePattern( node.getAnnotationTypePattern());
} else {
// perthis(@target(Foo))
return MAYBE;