aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java b/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
index da8271721..daaf2d5e1 100644
--- a/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
+++ b/weaver/src/org/aspectj/weaver/patterns/PerThisOrTargetPointcutVisitor.java
@@ -113,11 +113,14 @@ public class PerThisOrTargetPointcutVisitor extends IdentityPointcutVisitor {
}
public Object visit(NotPointcut node, Object data) {
- TypePattern negated = getPerTypePointcut(node.getNegatedPointcut());
- if (MAYBE.equals(negated)) {
- return MAYBE;
- }
- return new NotTypePattern(negated);
+// TypePattern negated = getPerTypePointcut(node.getNegatedPointcut());
+// if (MAYBE.equals(negated)) {
+// return MAYBE;
+// }
+// return new NotTypePattern(negated);
+ // AMC - the only safe thing to return here is maybe...
+ // see for example pr114054
+ return MAYBE;
}
public Object visit(ThisOrTargetAnnotationPointcut node, Object data) {