aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-02-16 23:32:17 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-02-16 23:45:28 +0100
commit74603cd9d355353f5373deb167988c5eaf015346 (patch)
tree568ec90fea98c8405b52fca93405333fa2109d3f /test/transform/resource/before
parentfe3490328a35d431fdd7bdf16eed08970e47b85c (diff)
downloadlombok-74603cd9d355353f5373deb167988c5eaf015346.tar.gz
lombok-74603cd9d355353f5373deb167988c5eaf015346.tar.bz2
lombok-74603cd9d355353f5373deb167988c5eaf015346.zip
Fixing issue #1298: `@Builder` with recursive generics didn’t work in javac/delombok.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/BuilderWithRecursiveGenerics.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderWithRecursiveGenerics.java b/test/transform/resource/before/BuilderWithRecursiveGenerics.java
new file mode 100644
index 00000000..041da414
--- /dev/null
+++ b/test/transform/resource/before/BuilderWithRecursiveGenerics.java
@@ -0,0 +1,13 @@
+//issue #1298
+import java.util.Set;
+import lombok.Builder;
+import lombok.Value;
+
+public class BuilderWithRecursiveGenerics {
+ interface Inter<T, U extends Inter<T, U>> {}
+
+ @Builder @Value public static class Test<Foo, Bar extends Set<Foo>, Quz extends Inter<Bar, Quz>> {
+ Foo foo;
+ Bar bar;
+ }
+}