From: aclement Date: Sun, 8 Nov 2009 17:20:07 +0000 (+0000) Subject: slowly merging in optimizations X-Git-Tag: V1_6_7~121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d266791089cf1315e50f35302afae9899e7849cc;p=aspectj.git slowly merging in optimizations --- diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 96b0ff0bc..990a93210 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -1701,12 +1701,10 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa * process typically looks for a method in the declaring type. */ public void testOptimizedMemberLookup() { - // AjdeInteractionTestbed.VERBOSE = true; - - // Build a simple project String p = "oml"; initialiseProject(p); build(p); + AjdeCoreBuildManager buildManager = getCompilerForProjectWithName(p).getBuildManager(); AjBuildManager ajBuildManager = buildManager.getAjBuildManager(); World w = ajBuildManager.getWorld(); @@ -1735,8 +1733,8 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa checkType(w, "B"); checkType(w, "C"); - // checkRtJar(w); - // + // checkRtJar(w); // only works if the JDK path is setup ok in checkRtJar + // speedCheck(w); } @@ -1786,8 +1784,8 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa n = n.substring(0, n.length() - 6); ResolvedType typeA = w.resolve(n); assertFalse(typeA.isMissing()); - List viaIteratorList = getThemAll(typeA.getMethods(true)); - viaIteratorList = getThemAll(typeA.getMethods(false)); + List viaIteratorList = getThemAll(typeA.getMethods(true, true)); + viaIteratorList = getThemAll(typeA.getMethods(false, true)); } } zf.close(); @@ -1830,11 +1828,11 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa checkMethods(w, name, false); } - private void checkMethods(World w, String name, boolean genericsAware) { + private void checkMethods(World w, String name, boolean wantGenerics) { ResolvedType typeA = w.resolve(name); assertFalse(typeA.isMissing()); - List viaIteratorList = getThemAll(typeA.getMethods(genericsAware)); - List directlyList = typeA.getMethodsWithoutIterator(true, true, genericsAware); + List viaIteratorList = getThemAll(typeA.getMethods(wantGenerics, true)); + List directlyList = typeA.getMethodsWithoutIterator(true, true, wantGenerics); Collections.sort(viaIteratorList, new ResolvedMemberComparator()); Collections.sort(directlyList, new ResolvedMemberComparator()); compare(viaIteratorList, directlyList, name);