From 6ace30a3a1447c89f988ca69d4029ea5e796423a Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 22 Sep 2009 20:31:11 +0000 Subject: [PATCH] 290087: testcode --- tests/bugs166/pr290087/Bean.java | 1 + tests/bugs166/pr290087/BeanChild.java | 9 +++++++++ tests/bugs166/pr290087/BeanHasInterface.java | 5 +++++ tests/bugs166/pr290087/GenericParent.java | 4 ++++ tests/bugs166/pr290087/Interface.java | 2 ++ tests/bugs166/pr290087/InterfaceParent.java | 6 ++++++ 6 files changed, 27 insertions(+) create mode 100644 tests/bugs166/pr290087/Bean.java create mode 100644 tests/bugs166/pr290087/BeanChild.java create mode 100644 tests/bugs166/pr290087/BeanHasInterface.java create mode 100644 tests/bugs166/pr290087/GenericParent.java create mode 100644 tests/bugs166/pr290087/Interface.java create mode 100644 tests/bugs166/pr290087/InterfaceParent.java 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 { + public BeanChild(Class 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; +} + 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 { + public GenericParent(Class 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 extends GenericParent { + public InterfaceParent(Class c) { + super(c); + } +} + -- 2.39.5