From a27826b268c28a7aa1596bb07461ab1cfb113d82 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 23 Apr 2018 22:36:07 +0200 Subject: [bugfix] generics on inner classes whose outer type has generics, when the outer type is an interface, caused bugs in ecj. --- test/transform/resource/before/BuilderWithRecursiveGenerics.java | 2 +- .../before/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/transform/resource/before/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/BuilderWithRecursiveGenerics.java b/test/transform/resource/before/BuilderWithRecursiveGenerics.java index 041da414..0ab86220 100644 --- a/test/transform/resource/before/BuilderWithRecursiveGenerics.java +++ b/test/transform/resource/before/BuilderWithRecursiveGenerics.java @@ -5,7 +5,7 @@ import lombok.Value; public class BuilderWithRecursiveGenerics { interface Inter> {} - + @Builder @Value public static class Test, Quz extends Inter> { Foo foo; Bar bar; diff --git a/test/transform/resource/before/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java b/test/transform/resource/before/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java new file mode 100644 index 00000000..585ebbde --- /dev/null +++ b/test/transform/resource/before/EqualsAndHashCodeWithGenericsOnInnersInInterfaces.java @@ -0,0 +1,6 @@ +public interface EqualsAndHashCodeWithGenericsOnInnersInInterfaces { + @lombok.EqualsAndHashCode class Inner { + int x; + } +} + -- cgit