diff options
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index 97bab6624..e0e3f04d5 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -247,7 +247,12 @@ class BcelClassWeaver implements IClassWeaver { // start by munging all typeMungers for (Iterator i = typeMungers.iterator(); i.hasNext(); ) { - BcelTypeMunger munger = (BcelTypeMunger)i.next(); + Object o = i.next(); + if ( !(o instanceof BcelTypeMunger) ) { + System.err.println("surprising: " + o); + continue; + } + BcelTypeMunger munger = (BcelTypeMunger)o; isChanged |= munger.munge(this); } |