aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValOutersWithGenerics.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-04-02 20:47:33 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-04-02 20:47:33 +0200
commitb041b355d64cf0c3ec17f360a1cee27a8fe0ea3f (patch)
tree8ff2d09567bb116fd1ea358cecc6753ae26d711e /test/transform/resource/after-ecj/ValOutersWithGenerics.java
parent1954c022a401cebdbb090d0b80c4f01d7bc76ec3 (diff)
downloadlombok-b041b355d64cf0c3ec17f360a1cee27a8fe0ea3f.tar.gz
lombok-b041b355d64cf0c3ec17f360a1cee27a8fe0ea3f.tar.bz2
lombok-b041b355d64cf0c3ec17f360a1cee27a8fe0ea3f.zip
Added tests for issue 358
Diffstat (limited to 'test/transform/resource/after-ecj/ValOutersWithGenerics.java')
-rw-r--r--test/transform/resource/after-ecj/ValOutersWithGenerics.java15
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())
+ {
+ }
+ }
}