aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-05-08 01:15:57 +0200
committerRoel Spilker <r.spilker@gmail.com>2014-05-08 01:15:57 +0200
commit293653e2ffb17ee96c3f3ff46c73e518ca6c76c3 (patch)
treed10f9b13981ca1b00155e09e15436702471d3146 /test/transform
parent22c5e0daaf6b56c85a59027a890efe9ed3e217e8 (diff)
downloadlombok-293653e2ffb17ee96c3f3ff46c73e518ca6c76c3.tar.gz
lombok-293653e2ffb17ee96c3f3ff46c73e518ca6c76c3.tar.bz2
lombok-293653e2ffb17ee96c3f3ff46c73e518ca6c76c3.zip
Added test for issue 361. It is currently ignored.
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/before/ValAnonymousSubclassWithGenerics.java23
1 files changed, 23 insertions, 0 deletions
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<String> names = new java.util.ArrayList<String>() {
+ public String get(int i) {
+ val result = super.get(i);
+ return result;
+ }
+ };
+}