diff options
author | aclement <aclement> | 2010-06-08 22:57:28 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-08 22:57:28 +0000 |
commit | 1e177eeb15107bd62748e0e7277fce0f06ef847b (patch) | |
tree | f68e67eb14c4097ac8b6b4553b1c85f90ad57215 /tests/features169 | |
parent | 80136da5b557b8deb4522710136d1f169a83ac73 (diff) | |
download | aspectj-1e177eeb15107bd62748e0e7277fce0f06ef847b.tar.gz aspectj-1e177eeb15107bd62748e0e7277fce0f06ef847b.zip |
generics and ITD inner class updates
Diffstat (limited to 'tests/features169')
-rw-r--r-- | tests/features169/itdInnerTypes/Choice2.java | 32 | ||||
-rw-r--r-- | tests/features169/itdInnerTypes/ChoiceGenerics1.java | 14 | ||||
-rw-r--r-- | tests/features169/itdInnerTypes/ChoiceGenerics2.java | 14 |
3 files changed, 60 insertions, 0 deletions
diff --git a/tests/features169/itdInnerTypes/Choice2.java b/tests/features169/itdInnerTypes/Choice2.java new file mode 100644 index 000000000..965a0d184 --- /dev/null +++ b/tests/features169/itdInnerTypes/Choice2.java @@ -0,0 +1,32 @@ +import java.util.*; + +public class Choice2 { + public static void main(String []argv) { + System.out.println(Bar.Keys.CHOICE); + } +} + +class Bar { + +} + +aspect X { + static List<Bar> choices; + public static List forClass() { + ArrayList al = new ArrayList(); + return al; + } + public static class Bar.Keys { + public static final Function<Object, Bar> CHOICE = Get.attrOf(choices,"choice"); + } +} + +class Get { + public static <T> Function<Object,T> attrOf(List<T> t,String s) { + return null; + } +} + +class Function<A,B> { + +} diff --git a/tests/features169/itdInnerTypes/ChoiceGenerics1.java b/tests/features169/itdInnerTypes/ChoiceGenerics1.java new file mode 100644 index 000000000..11b8bea9f --- /dev/null +++ b/tests/features169/itdInnerTypes/ChoiceGenerics1.java @@ -0,0 +1,14 @@ +import java.util.*; + +public class ChoiceGenerics1 { + public static void main(String []argv) { + new Keys<Integer>().choice = 42; + } +} + + +aspect X { + public static class ChoiceGenerics1.Keys<N> { + public N choice = null; + } +} diff --git a/tests/features169/itdInnerTypes/ChoiceGenerics2.java b/tests/features169/itdInnerTypes/ChoiceGenerics2.java new file mode 100644 index 000000000..ba3fb2ec5 --- /dev/null +++ b/tests/features169/itdInnerTypes/ChoiceGenerics2.java @@ -0,0 +1,14 @@ +import java.util.*; + +public class ChoiceGenerics2 { + public static void main(String []argv) { + new Keys<Integer>().choice = "abc"; + } +} + + +aspect X { + public static class ChoiceGenerics2.Keys<N> { + public N choice = null; + } +} |