summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-09-12 13:37:56 +0000
committeraclement <aclement>2005-09-12 13:37:56 +0000
commit2ae4f531c7f7c3c38c983c73492ef63b224784e3 (patch)
treedeb60a943286b10d70075c441f75c12ddca4e801 /weaver
parentf5030e64039e19f562423d9c8b7f7b4587ecdea7 (diff)
downloadaspectj-2ae4f531c7f7c3c38c983c73492ef63b224784e3.tar.gz
aspectj-2ae4f531c7f7c3c38c983c73492ef63b224784e3.zip
Test and fix for PR103740: Compiler failure on @annotation
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java b/weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java
index 3a6dcfcf0..6dd2f65df 100644
--- a/weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java
+++ b/weaver/src/org/aspectj/weaver/patterns/AnnotationPointcut.java
@@ -185,9 +185,6 @@ public class AnnotationPointcut extends NameBindingPointcut {
* @see org.aspectj.weaver.patterns.Pointcut#findResidue(org.aspectj.weaver.Shadow, org.aspectj.weaver.patterns.ExposedState)
*/
protected Test findResidueInternal(Shadow shadow, ExposedState state) {
-
-
-
if (annotationTypePattern instanceof BindingAnnotationTypePattern) {
BindingAnnotationTypePattern btp = (BindingAnnotationTypePattern)annotationTypePattern;
@@ -212,8 +209,11 @@ public class AnnotationPointcut extends NameBindingPointcut {
state.setErroneousVar(btp.getFormalIndex());
}
state.set(btp.getFormalIndex(),var);
- }
- return Literal.TRUE;
+ }
+ if (matchInternal(shadow).alwaysTrue())
+ return Literal.TRUE;
+ else
+ return Literal.FALSE;
}
/* (non-Javadoc)