Reproduces the bug with recursive generics in builder (issue #1298).

This commit is contained in:
Reinier Zwitserloot
2017-02-16 22:16:34 +01:00
parent a38b41f100
commit 8ec7abf996
@@ -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;
}
}