]> source.dussan.org Git - aspectj.git/commitdiff
290087: testcode
authoraclement <aclement>
Tue, 22 Sep 2009 20:31:11 +0000 (20:31 +0000)
committeraclement <aclement>
Tue, 22 Sep 2009 20:31:11 +0000 (20:31 +0000)
tests/bugs166/pr290087/Bean.java [new file with mode: 0644]
tests/bugs166/pr290087/BeanChild.java [new file with mode: 0644]
tests/bugs166/pr290087/BeanHasInterface.java [new file with mode: 0644]
tests/bugs166/pr290087/GenericParent.java [new file with mode: 0644]
tests/bugs166/pr290087/Interface.java [new file with mode: 0644]
tests/bugs166/pr290087/InterfaceParent.java [new file with mode: 0644]

diff --git a/tests/bugs166/pr290087/Bean.java b/tests/bugs166/pr290087/Bean.java
new file mode 100644 (file)
index 0000000..51e990f
--- /dev/null
@@ -0,0 +1 @@
+public class Bean {}
diff --git a/tests/bugs166/pr290087/BeanChild.java b/tests/bugs166/pr290087/BeanChild.java
new file mode 100644 (file)
index 0000000..321abb9
--- /dev/null
@@ -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 (file)
index 0000000..177dda1
--- /dev/null
@@ -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 (file)
index 0000000..f39ca25
--- /dev/null
@@ -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 (file)
index 0000000..c81b081
--- /dev/null
@@ -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 (file)
index 0000000..4c299db
--- /dev/null
@@ -0,0 +1,6 @@
+public class InterfaceParent<T extends Interface> extends GenericParent<T> {
+  public InterfaceParent(Class<? extends T> c) {
+    super(c);
+  }
+}
+