]> source.dussan.org Git - aspectj.git/commitdiff
119570:212783: testcases relating to not up collecting declare parents
authoraclement <aclement>
Wed, 20 Aug 2008 17:25:25 +0000 (17:25 +0000)
committeraclement <aclement>
Wed, 20 Aug 2008 17:25:25 +0000 (17:25 +0000)
tests/multiIncremental/pr119570_3/base/Complete.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java

diff --git a/tests/multiIncremental/pr119570_3/base/Complete.java b/tests/multiIncremental/pr119570_3/base/Complete.java
new file mode 100644 (file)
index 0000000..fb34e53
--- /dev/null
@@ -0,0 +1,29 @@
+
+import java.util.ArrayList;
+
+interface INode<Parent, Child> {
+    INode<Parent, Child> getParent();
+}
+
+abstract aspect NodeImpl<Parent, Child> {
+    declare parents : Child implements INode<Parent, Child>;
+    declare parents : Parent implements INode<Parent, Child>;
+
+    private INode<Parent, Child> INode.fParent;
+    public final INode<Parent, Child> INode.getParent() {
+        return fParent;
+    }
+}
+
+aspect PC extends NodeImpl<Tag, Tag> {
+//  declare parents : Tag implements INode<Tag,Tag>;
+}
+
+class Text {}
+class Tag {}
+
+public class Complete {
+    public static void main(String[] args) {
+        ((Tag) null).getParent();       
+    }
+}
index aaf74b812ffd55e702937a3a1e2cccb4e2c81695..f04d349da4d46fd4c56a4af2175db31deab45910 100644 (file)
@@ -658,12 +658,22 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
 //             assertNoErrors("PR119570");
 //     }
        
-       public void testPr119570_2() {
-               initialiseProject("PR119570_2");
-               build("PR119570_2");
-               List l = getWarningMessages("PR119570_2");
-               assertTrue("Should be no warnings, but got "+l,l.size()==0);
-       }
+//     public void testPr119570_212783_2() {
+//             initialiseProject("PR119570_2");
+//             build("PR119570_2");
+//             List l = getWarningMessages("PR119570_2");
+//             assertTrue("Should be no warnings, but got "+l,l.size()==0);
+//             assertNoErrors("PR119570_2");
+//     }
+//
+//     public void testPr119570_212783_3() {
+//             initialiseProject("pr119570_3");
+//             build("pr119570_3");
+//             List l = getWarningMessages("pr119570_3");
+//             assertTrue("Should be no warnings, but got "+l,l.size()==0);
+//             assertNoErrors("pr119570_3");
+//     }
+
        
        // If you fiddle with the compiler options - you must manually reset the options at the end of the test
        public void testPr117209() {