diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-01 06:52:52 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-01 06:53:10 +0100 |
commit | e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a (patch) | |
tree | b1d52306c826f384aed0ff9228029feb3f0ff88d /test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java | |
parent | a6170f5298daf42931877a2d9c98e6f2ad1985be (diff) | |
download | lombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.tar.gz lombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.tar.bz2 lombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.zip |
Fixed issues with val in inner classes, and re-enabled a test that caught it that we ignored earlier.
Diffstat (limited to 'test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java')
-rw-r--r-- | test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java b/test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java new file mode 100644 index 00000000..989555fc --- /dev/null +++ b/test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java @@ -0,0 +1,28 @@ +import java.util.*; +import lombok.val; +public class ValAnonymousSubclassWithGenerics { + Object object = new Object() { + x() { + super(); + } + void foo() { + final @val int j = 1; + } + }; + java.util.List<String> names = new java.util.ArrayList<String>() { + x() { + super(); + } + public String get(int i) { + final @val java.lang.String result = super.get(i); + return result; + } + }; + public ValAnonymousSubclassWithGenerics() { + super(); + } + void bar() { + final @val int k = super.hashCode(); + int x = k; + } +}
\ No newline at end of file |