From: aclement Date: Fri, 24 Apr 2009 21:23:45 +0000 (+0000) Subject: 273628: test and fix: use of if() pointcut in annotation style with annotation value... X-Git-Tag: V1_6_5~60 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6601d4e182c6cd780815ec6ea48d9423fac85d7;p=aspectj.git 273628: test and fix: use of if() pointcut in annotation style with annotation value binding! --- diff --git a/weaver/src/org/aspectj/weaver/bcel/AnnotationAccessFieldVar.java b/weaver/src/org/aspectj/weaver/bcel/AnnotationAccessFieldVar.java index af73d4497..10644c35c 100644 --- a/weaver/src/org/aspectj/weaver/bcel/AnnotationAccessFieldVar.java +++ b/weaver/src/org/aspectj/weaver/bcel/AnnotationAccessFieldVar.java @@ -91,6 +91,15 @@ class AnnotationAccessFieldVar extends BcelVar { } } + public void insertLoad(InstructionList il, InstructionFactory fact) { + // Only possible to do annotation field value extraction at + // MethodExecution + if (annoAccessor.getKind() != Shadow.MethodExecution) { + return; + } + appendLoadAndConvert(il, fact, annoFieldOfInterest); + } + public String toString() { return super.toString(); }