From 51e641f10a044a0e394f6bac3e906494c46dd67f Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 24 Feb 2009 19:17:31 +0000 Subject: [PATCH] 265729: fault in binary aspects for itds/decps and search for them correctly --- .../systemtest/ajc164/Ajc164Tests.java | 12 +++-- .../org/aspectj/systemtest/ajc164/ajc164.xml | 8 ++- .../tools/MultiProjectIncrementalTests.java | 52 ++++++++++++++++++- 3 files changed, 66 insertions(+), 6 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java index 6de409bdd..6e6542370 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java @@ -32,13 +32,17 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase { - public void testAnnoInherited_pr265695() { - runTest("anno inherited"); - } - + // public void testAnnoInherited_pr265695() { + // runTest("anno inherited"); + // } + // // public void testAnnoInherited_pr265695_2() { // runTest("new syntax for inherited anno - 1"); // } + // + // public void testAnnoInherited_pr265695_3() { + // runTest("new syntax for inherited anno - 3"); + // } public void testParserProblemSubArrayPatterns_pr148508() { runTest("parser problem for array subtypes"); diff --git a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml index 11acc2979..c2a62e69f 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml +++ b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml @@ -12,7 +12,13 @@ - + + + + + + + diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 4282ae5af..9a54cbd16 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -50,6 +50,55 @@ import org.aspectj.util.FileUtil; */ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementalAjdeInteractionTestbed { + public void testPR265729() { + AjdeInteractionTestbed.VERBOSE = true; + String lib = "pr265729_lib"; + initialiseProject(lib); + // addClasspathEntryChanged(lib, getProjectRelativePath(p1, "bin").toString()); + build(lib); + checkWasFullBuild(); + + String cli = "pr265729_client"; + initialiseProject(cli); + + addClasspathEntry(cli, new File("../lib/junit/junit.jar")); + configureAspectPath(cli, getProjectRelativePath(lib, "bin")); + build(cli); + checkWasFullBuild(); + + IProgramElement root = getModelFor(cli).getHierarchy().getRoot(); + + dumptree(root, 0); + PrintWriter pw = new PrintWriter(System.out); + try { + getModelFor(cli).dumprels(pw); + pw.flush(); + } catch (Exception e) { + } + IRelationshipMap irm = getModelFor(cli).getRelationshipMap(); + IRelationship ir = (IRelationship) irm.get("=pr265729_client