]> source.dussan.org Git - aspectj.git/commitdiff
322039: testcode
authoraclement <aclement>
Wed, 18 Aug 2010 17:29:04 +0000 (17:29 +0000)
committeraclement <aclement>
Wed, 18 Aug 2010 17:29:04 +0000 (17:29 +0000)
tests/multiIncremental/pr322039/base/src/p/Azpect.java [new file with mode: 0644]
tests/multiIncremental/pr322039/base/src/q2/Code.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java

diff --git a/tests/multiIncremental/pr322039/base/src/p/Azpect.java b/tests/multiIncremental/pr322039/base/src/p/Azpect.java
new file mode 100644 (file)
index 0000000..6316c8a
--- /dev/null
@@ -0,0 +1,6 @@
+package p;
+
+public aspect Azpect {
+  public int q2.Code.i;
+  public void q2.Code.something2() {}
+}
diff --git a/tests/multiIncremental/pr322039/base/src/q2/Code.java b/tests/multiIncremental/pr322039/base/src/q2/Code.java
new file mode 100644 (file)
index 0000000..93b9db9
--- /dev/null
@@ -0,0 +1,4 @@
+package q2;
+
+public class Code {
+}
index 874d05b8be488aef959ca6ebb232d51f9ac77b6a..400137519ab2f0d42b5a4e537e944daef5c4a052 100644 (file)
@@ -501,13 +501,23 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
                // Hid:6:(targets=1) =pr280380<g*AnAspect.aj}AnAspect)AClass.xxxx (declared on) =pr280380<f{AClass.java[AClass
        }
 
+       public void testFQItds_322039() throws Exception {
+               String p ="pr322039";
+               initialiseProject(p);
+               build(p);
+               printModel(p);
+               IRelationshipMap irm = getModelFor(p).getRelationshipMap();
+               List<IRelationship> rels = irm.get("=pr322039<p{Azpect.java'Azpect)q2.Code.something2");
+               assertNotNull(rels);
+       }
+
        public void testIncrementalCtorItdHandle_280383() throws Exception {
                String p = "pr280383";
                initialiseProject(p);
                build(p);
                printModel(p);
                IRelationshipMap irm = getModelFor(p).getRelationshipMap();
-               List rels = irm.get("=pr280383<f{AnAspect.java'AnAspect)f.AClass.f_AClass_new");
+               List<IRelationship> rels = irm.get("=pr280383<f{AnAspect.java'AnAspect)f.AClass.f_AClass_new");
                assertNotNull(rels);
        }