]> source.dussan.org Git - aspectj.git/commitdiff
268611: building broken deca code (fix)
authoraclement <aclement>
Mon, 16 Mar 2009 19:53:39 +0000 (19:53 +0000)
committeraclement <aclement>
Mon, 16 Mar 2009 19:53:39 +0000 (19:53 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java

index c93766322475588c3b6208ecae22e7d905267f38..a4cc277427f61cddd013b91ab440292d98b4b19c 100644 (file)
@@ -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
         */