summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR98320.aj
diff options
context:
space:
mode:
authoraclement <aclement>2005-06-14 13:58:09 +0000
committeraclement <aclement>2005-06-14 13:58:09 +0000
commitd6bfe97b4db7f2109a4a088ebd0898b3ef8740e9 (patch)
treed088f7eb6ff2ec1e4abc99ff5b26a233d1580573 /tests/bugs150/PR98320.aj
parente25db87b054247a2b71f6ab709b91e1f776cd223 (diff)
downloadaspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.tar.gz
aspectj-d6bfe97b4db7f2109a4a088ebd0898b3ef8740e9.zip
Tests for 98320, 99228, 99089: [generics][itds]
Diffstat (limited to 'tests/bugs150/PR98320.aj')
-rw-r--r--tests/bugs150/PR98320.aj18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs150/PR98320.aj b/tests/bugs150/PR98320.aj
new file mode 100644
index 000000000..ad07cd9e3
--- /dev/null
+++ b/tests/bugs150/PR98320.aj
@@ -0,0 +1,18 @@
+import java.util.*;
+
+class C {
+ Set<String> simple_local;
+ Set<Set<String>> nested_local;
+}
+
+aspect Inter_Type_Injector {
+ Set<String> C.simple_intertype;
+ Set<Set<String>> C.nested_intertype;
+
+ public void test() {
+ Set<String> simple_local = new C().simple_local; // works
+ Set<String> simple_intertype = new C().simple_intertype; // works
+ Set<Set<String>> nested_local = new C().nested_local; // works
+ Set<Set<String>> nested_intertype = new C().nested_intertype; // fails
+ }
+}