aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2009-03-16 19:53:39 +0000
committeraclement <aclement>2009-03-16 19:53:39 +0000
commit5877d7f9331fa5d52d766089a71a1bb271d438fb (patch)
treecb16487585830a27e5b37b5c1e9426a692e9c770 /weaver
parent3ed33c860ae647660de38ec6a0b6000814c3e1fe (diff)
downloadaspectj-5877d7f9331fa5d52d766089a71a1bb271d438fb.tar.gz
aspectj-5877d7f9331fa5d52d766089a71a1bb271d438fb.zip
268611: building broken deca code (fix)
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java5
1 files changed, 4 insertions, 1 deletions
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
*/