From cd8bd2c7cef6d403d6a60c7f3deb104b2898364b Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 10 Mar 2003 23:18:56 +0000 Subject: further work on binary aspects (aspect path) tested correct behavior for obvious forms of concrete aspects, next need to address abstract --- weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'weaver') 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); } -- cgit v1.2.3