aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160
diff options
context:
space:
mode:
authoraclement <aclement>2006-11-29 15:46:52 +0000
committeraclement <aclement>2006-11-29 15:46:52 +0000
commitc1aa8a278d257909a8d747d169b3fea09b031ba0 (patch)
tree86a155574b1d492b80cf34bbd5d1361e57016e4d /tests/bugs160
parent09e2b1bc62beb82dbaf746b996ebc8d7049380bc (diff)
downloadaspectj-c1aa8a278d257909a8d747d169b3fea09b031ba0.tar.gz
aspectj-c1aa8a278d257909a8d747d169b3fea09b031ba0.zip
test and fix for 165631: Dont allow multiple parameterizations in a hierarchy
Diffstat (limited to 'tests/bugs160')
-rw-r--r--tests/bugs160/pr165631/Bug.java13
-rw-r--r--tests/bugs160/pr165631/Bug2.java15
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs160/pr165631/Bug.java b/tests/bugs160/pr165631/Bug.java
new file mode 100644
index 000000000..e1ceb22ad
--- /dev/null
+++ b/tests/bugs160/pr165631/Bug.java
@@ -0,0 +1,13 @@
+interface A<T> {}
+
+interface B<T> extends A<T> {}
+
+class C implements A<String> {
+}
+
+class D extends C {
+}
+
+aspect X {
+ declare parents: D implements B<Number>;
+}
diff --git a/tests/bugs160/pr165631/Bug2.java b/tests/bugs160/pr165631/Bug2.java
new file mode 100644
index 000000000..0754042e9
--- /dev/null
+++ b/tests/bugs160/pr165631/Bug2.java
@@ -0,0 +1,15 @@
+interface A<T> {}
+
+interface B<T> extends A<T> {}
+
+class C implements A<String> {}
+
+interface A1 {}
+
+class D extends C implements A1 {
+}
+
+aspect X {
+ declare parents: D implements B<Number>;
+}
+