]> source.dussan.org Git - aspectj.git/commitdiff
fixed bug caught by unit tests
authorjhugunin <jhugunin>
Sun, 27 Apr 2003 22:48:06 +0000 (22:48 +0000)
committerjhugunin <jhugunin>
Sun, 27 Apr 2003 22:48:06 +0000 (22:48 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index c3598ed49eeab456aee77a350575bc118f166d7e..56756a074d27dc452fc891b8ccd9640b1fe7775f 100644 (file)
@@ -293,15 +293,14 @@ public class BcelWeaver implements IWeaver {
                        DeclareParents p = (DeclareParents)i.next();
                        List newParents = p.findMatchingNewParents(onType);
                        if (!newParents.isEmpty()) {
-                               //???
-                               BcelObjectType classType = BcelWorld.getBcelObjectType(world.resolve(onType.getClassName()));
+                               BcelObjectType classType = BcelWorld.getBcelObjectType(onType);
                                //System.err.println("need to do declare parents for: " + onType);
                                for (Iterator j = newParents.iterator(); j.hasNext(); ) {
                                        ResolvedTypeX newParent = (ResolvedTypeX)j.next();
                                        if (newParent.isClass()) {
                                                world.showMessage(IMessage.ERROR,
                                                        "can't use declare parents to change superclass of binary form \'" +
-                                                       onType.getClassName() + "\' (implementation limitation)",
+                                                       onType.getName() + "\' (implementation limitation)",
                                                        p.getSourceLocation(), null);
                                                continue;
                                        }