From 5877d7f9331fa5d52d766089a71a1bb271d438fb Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 16 Mar 2009 19:53:39 +0000 Subject: [PATCH] 268611: building broken deca code (fix) --- weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index c93766322..a4cc27742 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -1251,6 +1251,9 @@ class BcelClassWeaver implements IClassWeaver { // go through all the declare @field statements for (Iterator iter = decaFs.iterator(); iter.hasNext();) { DeclareAnnotation decaF = (DeclareAnnotation) iter.next(); + if (decaF.getAnnotationX() == null) { + return false; + } if (decaF.matches(aBcelField, world)) { if (!dontAddTwice(decaF, dontAddMeTwice)) { @@ -2042,7 +2045,7 @@ class BcelClassWeaver implements IClassWeaver { * * @param donor the method from which we will copy (and adjust frame and jumps) instructions. * @param recipient the method the instructions will go into. Used to get the frame size so we can allocate new frame locations - * for locals in donor. + * for locals in donor. * @param frameEnv an environment to map from donor frame to recipient frame, initially populated with argument locations. * @param fact an instruction factory for recipient */ -- 2.39.5