From 4bc9d287704b1ed797d92a2b19dea6b0f82b8f5b Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 25 Oct 2005 14:59:59 +0000 Subject: change to override check. --- weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weaver') diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java index 3af5d3c98..6d39bf0af 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java @@ -949,7 +949,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { ResolvedMember aMethod = (ResolvedMember) iter.next(); if (aMethod.getName().equals(localMethodName) && aMethod.getParameterSignature().equals(localParameterSig)) { // check the return types, if they are different we need a bridging method. - if (!aMethod.getReturnType().getErasureSignature().equals(localReturnTypeESig)) { + if (!aMethod.getReturnType().getErasureSignature().equals(localReturnTypeESig) && !Modifier.isPrivate(aMethod.getModifiers())) { // Step3 createBridgeMethod(weaver.getWorld(), munger, unMangledInterMethod, gen, paramTypes, aMethod); quitRightNow = true; -- cgit v1.2.3