From 92f36043baa4059b8707a81429a5e2f79ee7a2ee Mon Sep 17 00:00:00 2001 From: jhugunin Date: Sun, 27 Apr 2003 22:48:06 +0000 Subject: [PATCH] fixed bug caught by unit tests --- weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index c3598ed49..56756a074 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java @@ -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; } -- 2.39.5