From e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 1 Feb 2015 06:52:52 +0100 Subject: Fixed issues with val in inner classes, and re-enabled a test that caught it that we ignored earlier. --- .../ValAnonymousSubclassWithGenerics.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java (limited to 'test/transform/resource/after-ecj/ValAnonymousSubclassWithGenerics.java') 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 names = new java.util.ArrayList() { + 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 -- cgit