]> source.dussan.org Git - aspectj.git/commitdiff
more design tests.
authoraclement <aclement>
Thu, 20 Oct 2005 08:32:26 +0000 (08:32 +0000)
committeraclement <aclement>
Thu, 20 Oct 2005 08:32:26 +0000 (08:32 +0000)
tests/java5/generics/itds/design/DesignF.java [new file with mode: 0644]
tests/java5/generics/itds/design/DesignG.java [new file with mode: 0644]

diff --git a/tests/java5/generics/itds/design/DesignF.java b/tests/java5/generics/itds/design/DesignF.java
new file mode 100644 (file)
index 0000000..a49532d
--- /dev/null
@@ -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 (file)
index 0000000..dd76361
--- /dev/null
@@ -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; 
+
+}