]> source.dussan.org Git - aspectj.git/commitdiff
change to override check.
authoraclement <aclement>
Tue, 25 Oct 2005 14:59:59 +0000 (14:59 +0000)
committeraclement <aclement>
Tue, 25 Oct 2005 14:59:59 +0000 (14:59 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java

index 3af5d3c9899d823e1317be7ef4d3f4d9677c880f..6d39bf0aff22efde2c0f84714ffb32c2ef7bf648 100644 (file)
@@ -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;