summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/FieldC.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/generics/itds/sharing/FieldC.aj')
-rw-r--r--tests/java5/generics/itds/sharing/FieldC.aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/sharing/FieldC.aj b/tests/java5/generics/itds/sharing/FieldC.aj
new file mode 100644
index 000000000..63ab95946
--- /dev/null
+++ b/tests/java5/generics/itds/sharing/FieldC.aj
@@ -0,0 +1,17 @@
+import java.util.*;
+
+public class FieldC {
+ public static void main(String []argv) {
+ Base<Integer> base = new Base<Integer>();
+ List<List<Integer>> intList2 = new ArrayList<List<Integer>>();
+ base.j=intList2;
+
+ }
+}
+
+class Base<N extends Number> {
+}
+
+aspect X {
+ public List<List<Z>> Base<Z>.j; // ok - nested but OK
+}