]> source.dussan.org Git - aspectj.git/commitdiff
do the right version check!
authoraclement <aclement>
Thu, 21 Feb 2008 17:37:15 +0000 (17:37 +0000)
committeraclement <aclement>
Thu, 21 Feb 2008 17:37:15 +0000 (17:37 +0000)
weaver/src/org/aspectj/weaver/patterns/ExactAnnotationTypePattern.java

index 45664babecf51af15ccadef5ab00d5eb871229c3..060d2956ae945e32cb00918ea7325c720803f59b 100644 (file)
@@ -256,7 +256,7 @@ public class ExactAnnotationTypePattern extends AnnotationTypePattern {
                        ret = new ExactAnnotationTypePattern(UnresolvedType.read(s));                   
                }
                ret.readLocation(context,s);
-               if (s.getMajorVersion()>=WeaverVersionInfo.WEAVER_VERSION_MINOR_AJ160) {
+               if (s.getMajorVersion()>=WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ160) {
                        if (s.readBoolean()) ret.setForParameterAnnotationMatch();
                }
                return ret;