aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs166
diff options
context:
space:
mode:
authoraclement <aclement>2009-09-22 20:31:11 +0000
committeraclement <aclement>2009-09-22 20:31:11 +0000
commit6ace30a3a1447c89f988ca69d4029ea5e796423a (patch)
treec8d9352f98b7743f287f6292f4206477f25cad29 /tests/bugs166
parent4d200d1ffd09f64825f908979a3d7af0f3cb63a9 (diff)
downloadaspectj-6ace30a3a1447c89f988ca69d4029ea5e796423a.tar.gz
aspectj-6ace30a3a1447c89f988ca69d4029ea5e796423a.zip
290087: testcode
Diffstat (limited to 'tests/bugs166')
-rw-r--r--tests/bugs166/pr290087/Bean.java1
-rw-r--r--tests/bugs166/pr290087/BeanChild.java9
-rw-r--r--tests/bugs166/pr290087/BeanHasInterface.java5
-rw-r--r--tests/bugs166/pr290087/GenericParent.java4
-rw-r--r--tests/bugs166/pr290087/Interface.java2
-rw-r--r--tests/bugs166/pr290087/InterfaceParent.java6
6 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs166/pr290087/Bean.java b/tests/bugs166/pr290087/Bean.java
new file mode 100644
index 000000000..51e990faa
--- /dev/null
+++ b/tests/bugs166/pr290087/Bean.java
@@ -0,0 +1 @@
+public class Bean {}
diff --git a/tests/bugs166/pr290087/BeanChild.java b/tests/bugs166/pr290087/BeanChild.java
new file mode 100644
index 000000000..321abb955
--- /dev/null
+++ b/tests/bugs166/pr290087/BeanChild.java
@@ -0,0 +1,9 @@
+public class BeanChild extends GenericParent<Bean> {
+ public BeanChild(Class<? extends Bean> c) {
+ super(c);
+ }
+ public static void main(String []argv) {
+ new BeanChild(null);
+ }
+}
+
diff --git a/tests/bugs166/pr290087/BeanHasInterface.java b/tests/bugs166/pr290087/BeanHasInterface.java
new file mode 100644
index 000000000..177dda129
--- /dev/null
+++ b/tests/bugs166/pr290087/BeanHasInterface.java
@@ -0,0 +1,5 @@
+public aspect BeanHasInterface {
+ declare parents : Bean implements Interface;
+ declare parents : BeanChild extends InterfaceParent<Bean>;
+}
+
diff --git a/tests/bugs166/pr290087/GenericParent.java b/tests/bugs166/pr290087/GenericParent.java
new file mode 100644
index 000000000..f39ca252b
--- /dev/null
+++ b/tests/bugs166/pr290087/GenericParent.java
@@ -0,0 +1,4 @@
+public class GenericParent<T> {
+ public GenericParent(Class<? extends T> clazz) {}
+}
+
diff --git a/tests/bugs166/pr290087/Interface.java b/tests/bugs166/pr290087/Interface.java
new file mode 100644
index 000000000..c81b081a1
--- /dev/null
+++ b/tests/bugs166/pr290087/Interface.java
@@ -0,0 +1,2 @@
+public interface Interface {}
+
diff --git a/tests/bugs166/pr290087/InterfaceParent.java b/tests/bugs166/pr290087/InterfaceParent.java
new file mode 100644
index 000000000..4c299db48
--- /dev/null
+++ b/tests/bugs166/pr290087/InterfaceParent.java
@@ -0,0 +1,6 @@
+public class InterfaceParent<T extends Interface> extends GenericParent<T> {
+ public InterfaceParent(Class<? extends T> c) {
+ super(c);
+ }
+}
+