aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-02-16 22:16:34 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-02-16 22:16:34 +0100
commit8ec7abf996ba1089104f5d56cc417b17dcadca5f (patch)
tree4b1cf33a7e24362565890501bf89fbd3e33ad740 /test/transform
parenta38b41f100ac759eadb05433341cf062e7094f4c (diff)
downloadlombok-8ec7abf996ba1089104f5d56cc417b17dcadca5f.tar.gz
lombok-8ec7abf996ba1089104f5d56cc417b17dcadca5f.tar.bz2
lombok-8ec7abf996ba1089104f5d56cc417b17dcadca5f.zip
Reproduces the bug with recursive generics in builder (issue #1298).
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/knownBroken/before/I1298BuilderWithGenerics.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/knownBroken/before/I1298BuilderWithGenerics.java b/test/transform/knownBroken/before/I1298BuilderWithGenerics.java
new file mode 100644
index 00000000..af154d42
--- /dev/null
+++ b/test/transform/knownBroken/before/I1298BuilderWithGenerics.java
@@ -0,0 +1,15 @@
+import java.util.Set;
+import lombok.Builder;
+import lombok.Value;
+
+public class I1298BuilderWithGenerics {
+ 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;
+ }
+}