]> source.dussan.org Git - aspectj.git/commitdiff
AspectJ6: some simple testcode
authoraclement <aclement>
Wed, 16 Jan 2008 23:50:46 +0000 (23:50 +0000)
committeraclement <aclement>
Wed, 16 Jan 2008 23:50:46 +0000 (23:50 +0000)
tests/bugs150/pr119570/SimpleTest.java [new file with mode: 0644]

diff --git a/tests/bugs150/pr119570/SimpleTest.java b/tests/bugs150/pr119570/SimpleTest.java
new file mode 100644 (file)
index 0000000..56d0d4e
--- /dev/null
@@ -0,0 +1,26 @@
+import java.util.ArrayList;
+
+interface INode<P, C> {
+    INode<P, C> getParent();
+}
+
+ abstract aspect NodeImpl<Parent, Child> {
+    declare parents : Child implements INode<Parent, Child>;
+    declare parents : Parent implements INode<Parent, Child>;
+    public final INode<Parent, Child> INode.getParent() {
+        return null;
+    }
+}
+
+public class SimpleTest {
+
+    public static void main(String[] args) {
+        Tag tag1 = new Tag();
+        Tag tag2 = new Tag();
+        tag1.getParent();
+    }
+
+}
+class Tag {  }
+
+aspect X extends NodeImpl<Tag,Tag> {}