From ea0c31e9db096fea037be320f317084d47a786eb Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 8 Dec 2004 15:04:37 +0000 Subject: [PATCH] update to new @pat syntax --- .../weaver/patterns/AnnotationPatternMatchingTestCase.java | 4 ++-- 1 file 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()); -- 2.39.5