From 293653e2ffb17ee96c3f3ff46c73e518ca6c76c3 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 8 May 2014 01:15:57 +0200 Subject: Added test for issue 361. It is currently ignored. --- .../before/ValAnonymousSubclassWithGenerics.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/transform/resource/before/ValAnonymousSubclassWithGenerics.java (limited to 'test') diff --git a/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java b/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java new file mode 100644 index 00000000..49fc86e0 --- /dev/null +++ b/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java @@ -0,0 +1,23 @@ +// ignore +import java.util.*; +import lombok.val; + +public class ValAnonymousSubclassWithGenerics { + Object object = new Object(){ + void foo() { + val j = 1; + } + }; + + void bar() { + val k = super.hashCode(); + int x = k; + } + + java.util.List names = new java.util.ArrayList() { + public String get(int i) { + val result = super.get(i); + return result; + } + }; +} -- cgit