]> source.dussan.org Git - aspectj.git/commitdiff
No longer a restriction
authoraclement <aclement>
Mon, 31 Jan 2005 13:23:05 +0000 (13:23 +0000)
committeraclement <aclement>
Mon, 31 Jan 2005 13:23:05 +0000 (13:23 +0000)
weaver/testsrc/org/aspectj/weaver/patterns/AnnotationPatternMatchingTestCase.java

index ba404c0cd2400b1b22eb5c06dc3c943a7c63d3c0..e7fdbdca99a57db287487a9b72d571304b5f0a68 100644 (file)
@@ -126,15 +126,15 @@ public class AnnotationPatternMatchingTestCase extends TestCase {
                AnnotationTypePattern atp = p.parseAnnotationNameOrVarTypePattern();
                atp = atp.resolveBindings(makeSimpleScope(),new Bindings(3),true);
                
-               assertTrue("Expected 2 error messages but got "+mh.messages.size(),mh.messages.size()==2);
+               assertTrue("Expected 2 error messages but got "+mh.messages.size(),mh.messages.size()==1);
                
                String expected = "Type referred to is not an annotation type";
                String msg = ((IMessage)mh.messages.get(0)).toString();
                assertTrue("Expected: "+expected+" but got "+msg,msg.indexOf(expected)!=-1);
                
-               expected = "Binding not supported in @pcds (1.5.0 M1 limitation): null";
-               msg = ((IMessage)mh.messages.get(1)).toString();
-               assertTrue("Expected: "+expected+" but got "+msg,msg.indexOf(expected)!=-1);
+//             expected = "Binding not supported in @pcds (1.5.0 M1 limitation): null";
+//             msg = ((IMessage)mh.messages.get(1)).toString();
+//             assertTrue("Expected: "+expected+" but got "+msg,msg.indexOf(expected)!=-1);
        }
        
        public TestScope makeSimpleScope() {