aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-12-08 15:04:37 +0000
committeracolyer <acolyer>2004-12-08 15:04:37 +0000
commitea0c31e9db096fea037be320f317084d47a786eb (patch)
treeda4c002ee5b7a1e8ed2246364084857a41e1c712 /weaver
parentae085e2a79e3d8a71b03f422db8292d1007e04c1 (diff)
downloadaspectj-ea0c31e9db096fea037be320f317084d47a786eb.tar.gz
aspectj-ea0c31e9db096fea037be320f317084d47a786eb.zip
update to new @pat syntax
Diffstat (limited to 'weaver')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java b/weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java
index fba58dae0..9945dc0d8 100644
--- a/weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java
+++ b/weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java
@@ -230,13 +230,13 @@ public class AnnotationPatternMatchingTestCase extends TestCase {
initAnnotationTypePatterns();
// Let's create something wild
- PatternParser p = new PatternParser("@Foo || @Boo");
+ PatternParser p = new PatternParser("@(Foo || Boo)");
AnnotationTypePattern ap = p.maybeParseAnnotationPattern();
ap = ap.resolveBindings(makeSimpleScope(),new Bindings(3),true);
assertTrue("shouldnt match the type AnnotatedClass",ap.matches(rtx).alwaysFalse());
- p = new PatternParser("@p.SimpleAnnotation || @Boo");
+ p = new PatternParser("@(p.SimpleAnnotation || Boo)");
ap = p.maybeParseAnnotationPattern();
ap = ap.resolveBindings(makeSimpleScope(),new Bindings(3),true);
assertTrue("should match the type AnnotatedClass",ap.matches(rtx).alwaysTrue());