]> source.dussan.org Git - aspectj.git/commitdiff
update to new @pat syntax
authoracolyer <acolyer>
Wed, 8 Dec 2004 15:04:37 +0000 (15:04 +0000)
committeracolyer <acolyer>
Wed, 8 Dec 2004 15:04:37 +0000 (15:04 +0000)
weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java

index fba58dae02377cc69326decc984fcdf7e4d45f68..9945dc0d84d10a671d9610240d7c72813996aba2 100644 (file)
@@ -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());