From: aclement Date: Sat, 7 Nov 2009 23:51:15 +0000 (+0000) Subject: slowly merging in optimizations X-Git-Tag: V1_6_7~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c59333620d99c4eed53c17f70d9ba66d157bf64;p=aspectj.git slowly merging in optimizations --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java index 8cc4121f8..8622c9f70 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java @@ -1135,7 +1135,7 @@ public class BcelTypeMunger extends ConcreteTypeMunger { if (!alreadyDone) { // Use the iterator form of 'getMethods()' so we do as little work // as necessary - for (Iterator iter = onType.getSuperclass().getMethods(); iter.hasNext() && !quitRightNow;) { + for (Iterator iter = onType.getSuperclass().getMethods(true, true); iter.hasNext() && !quitRightNow;) { 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 diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java index 853d6aeb5..c2c60a8e2 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java @@ -551,7 +551,7 @@ public class BcelWorld extends World implements Repository { if (ii.opcode == Constants.INVOKESTATIC) { ResolvedType appearsDeclaredBy = resolve(declaring); // look for the method there - for (Iterator iterator = appearsDeclaredBy.getMethods(); iterator.hasNext();) { + for (Iterator iterator = appearsDeclaredBy.getMethods(true, true); iterator.hasNext();) { ResolvedMember method = iterator.next(); if (method.isStatic()) { if (name.equals(method.getName()) && signature.equals(method.getSignature())) {