summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics
diff options
context:
space:
mode:
authoraclement <aclement>2005-10-20 08:32:26 +0000
committeraclement <aclement>2005-10-20 08:32:26 +0000
commit73b22d28e29ed9a4bb5ef2325f9b91dc3b800e33 (patch)
treea15bbc8f072f9b646b109a2be716929a9106894b /tests/java5/generics
parentab8ad33b2084f275fd59f177173ddce544b3e8b2 (diff)
downloadaspectj-73b22d28e29ed9a4bb5ef2325f9b91dc3b800e33.tar.gz
aspectj-73b22d28e29ed9a4bb5ef2325f9b91dc3b800e33.zip
more design tests.
Diffstat (limited to 'tests/java5/generics')
-rw-r--r--tests/java5/generics/itds/design/DesignF.java16
-rw-r--r--tests/java5/generics/itds/design/DesignG.java17
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/design/DesignF.java b/tests/java5/generics/itds/design/DesignF.java
new file mode 100644
index 000000000..a49532d98
--- /dev/null
+++ b/tests/java5/generics/itds/design/DesignF.java
@@ -0,0 +1,16 @@
+import java.util.*;
+
+// Checking what gets into the target classes...
+// Here the ITDs are on some target *class*
+
+class C<T> {}
+
+aspect X {
+
+ List C.list1;
+ List<Z> C<Z>.list2;
+
+ String C.field1;
+ Q C<Q>.field2;
+
+}
diff --git a/tests/java5/generics/itds/design/DesignG.java b/tests/java5/generics/itds/design/DesignG.java
new file mode 100644
index 000000000..dd7636146
--- /dev/null
+++ b/tests/java5/generics/itds/design/DesignG.java
@@ -0,0 +1,17 @@
+import java.util.*;
+
+// Checking what gets into the target classes...
+// Here the ITDs are on some interface and so found in the class
+// that implements the interface
+
+class C implements I<String> {}
+
+interface I<T> {}
+
+aspect X {
+
+ List<Z> I<Z>.ln;
+
+ Q I<Q>.n;
+
+}