summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/decp
diff options
context:
space:
mode:
authoraclement <aclement>2005-07-08 09:56:01 +0000
committeraclement <aclement>2005-07-08 09:56:01 +0000
commitb5ec33632bc6425ff9d45b5ee87d55bb2fef0389 (patch)
treed56ddc41b56cd18247fcaa9b257e87cdd535d6c0 /tests/java5/generics/decp
parent6aae0999c6a640bd7c86970a8c9d7a7bb6bab676 (diff)
downloadaspectj-b5ec33632bc6425ff9d45b5ee87d55bb2fef0389.tar.gz
aspectj-b5ec33632bc6425ff9d45b5ee87d55bb2fef0389.zip
generics: decp tests
Diffstat (limited to 'tests/java5/generics/decp')
-rw-r--r--tests/java5/generics/decp/Basic2b.aj11
-rw-r--r--tests/java5/generics/decp/Basic2c.aj11
-rw-r--r--tests/java5/generics/decp/Basic2d.aj12
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/java5/generics/decp/Basic2b.aj b/tests/java5/generics/decp/Basic2b.aj
new file mode 100644
index 000000000..8cfc4978f
--- /dev/null
+++ b/tests/java5/generics/decp/Basic2b.aj
@@ -0,0 +1,11 @@
+interface I<T>{ }
+
+public class Basic2b implements I {
+
+ public static void main(String[]argv) {
+ }
+}
+
+aspect X{
+ declare parents: Basic2b implements I<Integer>; // error
+}
diff --git a/tests/java5/generics/decp/Basic2c.aj b/tests/java5/generics/decp/Basic2c.aj
new file mode 100644
index 000000000..bdf7bec71
--- /dev/null
+++ b/tests/java5/generics/decp/Basic2c.aj
@@ -0,0 +1,11 @@
+interface I<T>{ }
+
+public class Basic2c implements I<Double> {
+
+ public static void main(String[]argv) {
+ }
+}
+
+aspect X{
+ declare parents: Basic2c implements I; // error
+}
diff --git a/tests/java5/generics/decp/Basic2d.aj b/tests/java5/generics/decp/Basic2d.aj
new file mode 100644
index 000000000..d4e6305b5
--- /dev/null
+++ b/tests/java5/generics/decp/Basic2d.aj
@@ -0,0 +1,12 @@
+// OK - since new parent matches
+interface I<T>{ }
+
+public class Basic2d implements I<Double> {
+
+ public static void main(String[]argv) {
+ }
+}
+
+aspect X{
+ declare parents: Basic2d implements I<Double>;
+}