aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160
diff options
context:
space:
mode:
authoraclement <aclement>2007-01-11 10:32:41 +0000
committeraclement <aclement>2007-01-11 10:32:41 +0000
commit8944ce6832ffd5d47f7c6c7bac7e67c003aaedcc (patch)
tree729e401e04eccf2058da72617f3c4f12a6d03f65 /tests/bugs160
parent53366032c9158823a2d7527df96046f34b773c9c (diff)
downloadaspectj-8944ce6832ffd5d47f7c6c7bac7e67c003aaedcc.tar.gz
aspectj-8944ce6832ffd5d47f7c6c7bac7e67c003aaedcc.zip
test and fix for 168044 - processing complex self referential generic declarations
Diffstat (limited to 'tests/bugs160')
-rw-r--r--tests/bugs160/pr168044/AbstractNode.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs160/pr168044/AbstractNode.java b/tests/bugs160/pr168044/AbstractNode.java
new file mode 100644
index 000000000..bb1401fb4
--- /dev/null
+++ b/tests/bugs160/pr168044/AbstractNode.java
@@ -0,0 +1,19 @@
+public abstract class AbstractNode < SelfNode extends AbstractNode<SelfNode, DualNode>, DualNode extends AbstractNode<DualNode, SelfNode> > {
+}
+
+class SubClass extends AbstractNode<A,B> {
+}
+
+class A extends AbstractNode<A,B> { }
+class B extends AbstractNode<B,A> { }
+
+abstract class Mad
+<
+ Id extends Comparable<Id>,
+ Np extends Mad<Id, Np, Nt, Np, Nt>,
+ Nt extends Mad<Id, Np, Nt, Nt, Np>,
+ SelfNode extends Mad<Id, Np, Nt, SelfNode, DualNode>,
+ DualNode extends Mad<Id, Np, Nt, DualNode, SelfNode>
+>
+{
+}