diff options
Diffstat (limited to 'test/transform/resource/after-ecj/ValOutersWithGenerics.java')
-rw-r--r-- | test/transform/resource/after-ecj/ValOutersWithGenerics.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValOutersWithGenerics.java b/test/transform/resource/after-ecj/ValOutersWithGenerics.java index b4225ede..da16e7f8 100644 --- a/test/transform/resource/after-ecj/ValOutersWithGenerics.java +++ b/test/transform/resource/after-ecj/ValOutersWithGenerics.java @@ -6,6 +6,11 @@ public class ValOutersWithGenerics<Z> { super(); } } + class InnerWithGenerics<H> { + InnerWithGenerics() { + super(); + } + } static class SubClass extends ValOutersWithGenerics<String> { SubClass() { super(); @@ -31,4 +36,14 @@ public class ValOutersWithGenerics<Z> { } final @val Local<java.lang.String> q = new Local<String>(); } + public static void test() { + final @val ValOutersWithGenerics<java.lang.String> outer = new ValOutersWithGenerics<String>(); + final @val ValOutersWithGenerics<java.lang.String>.Inner inner1 = outer.new Inner(); + final @val ValOutersWithGenerics<java.lang.String>.InnerWithGenerics<java.lang.Integer> inner2 = outer.new InnerWithGenerics<Integer>(); + } + public static void loop(Map<String, String> map) { + for (final @val java.util.Map.Entry<java.lang.String, java.lang.String> e : map.entrySet()) + { + } + } } |