From: aclement Date: Thu, 21 Feb 2008 17:37:15 +0000 (+0000) Subject: do the right version check! X-Git-Tag: V1_6_0M2~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ca4854013bb96fe4500ffbc5172e6937b193320;p=aspectj.git do the right version check! --- diff --git a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationTypePattern.java index 45664babe..060d2956a 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationTypePattern.java @@ -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;