diff options
author | aclement <aclement> | 2009-04-06 15:38:27 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-04-06 15:38:27 +0000 |
commit | a2b8d41837c2732459251724ec17e4e9a6f2c28d (patch) | |
tree | cabd3ccb3f16cfc1503bda541efa617d122dff8d | |
parent | bf9773a0b7ee6cfa7b79bbff75ee1b25d50cc8e4 (diff) | |
download | aspectj-a2b8d41837c2732459251724ec17e4e9a6f2c28d.tar.gz aspectj-a2b8d41837c2732459251724ec17e4e9a6f2c28d.zip |
271201: inpath handle: can determine if class is from inpath in add method now
-rw-r--r-- | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 31225aa3b..9bca0f0db 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -2791,6 +2791,41 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa warnings = getWarningMessages("inpathTesting"); assertTrue("Expected there to be two warning message but found " + warnings.size() + ": " + warnings, warnings.size() == 2); } + + + // warning about cant change parents of Object is fine + public void testInpathHandles_271201() throws Exception { + AjdeInteractionTestbed.VERBOSE=true; + String p = "inpathHandles"; + initialiseProject(p); + + String inpathTestingDir = getWorkingDir() + File.separator + "inpathHandles"; + String inpathDir = inpathTestingDir + File.separator + "binpath";// + File.separator+ "codep"; + // String expectedOutputDir = inpathTestingDir + File.separator + "bin"; + + // set up the inpath to have the directory on it's path + System.out.println(inpathDir); + File f = new File(inpathDir); + Set s = new HashSet(); + s.add(f); + configureInPath(p, s); + build(p); + + IProgramElement root = getModelFor(p).getHierarchy().getRoot(); + +// alter(p,"inc1"); +// build(p); +// dumptree(root, 0); +// PrintWriter pw = new PrintWriter(System.out); +// try { +// getModelFor(p).dumprels(pw); +// pw.flush(); +// } catch (Exception e) { +// } + List l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;<codep(Code.class[Code"); + assertNotNull(l); + System.out.println(l.get(0)); + } // --- helper code --- |