From 0ab433b41a6d2afa446d7e46204531c1efa606e2 Mon Sep 17 00:00:00 2001 From: Jan Rieke Date: Tue, 11 Feb 2020 12:25:53 +0100 Subject: SuperBuilder javac fix for nested generic types; fixes #2359 --- .../SuperBuilderNestedGenericTypes.java | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java b/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java new file mode 100644 index 00000000..ad738c01 --- /dev/null +++ b/test/transform/resource/after-delombok/SuperBuilderNestedGenericTypes.java @@ -0,0 +1,41 @@ +public class SuperBuilderNestedGenericTypes { + public static abstract class Generic> { + @java.lang.SuppressWarnings("all") + public static abstract class GenericBuilder, C extends SuperBuilderNestedGenericTypes.Generic, B extends SuperBuilderNestedGenericTypes.Generic.GenericBuilder> { + @java.lang.SuppressWarnings("all") + protected abstract B self(); + @java.lang.SuppressWarnings("all") + public abstract C build(); + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "SuperBuilderNestedGenericTypes.Generic.GenericBuilder()"; + } + } + @java.lang.SuppressWarnings("all") + protected Generic(final SuperBuilderNestedGenericTypes.Generic.GenericBuilder b) { + } + } + public static abstract class NestedGeneric> extends Generic>> { + @java.lang.SuppressWarnings("all") + public static abstract class NestedGenericBuilder, C extends SuperBuilderNestedGenericTypes.NestedGeneric, B extends SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder> extends Generic.GenericBuilder>, C, B> { + @java.lang.Override + @java.lang.SuppressWarnings("all") + protected abstract B self(); + @java.lang.Override + @java.lang.SuppressWarnings("all") + public abstract C build(); + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder(super=" + super.toString() + ")"; + } + } + @java.lang.SuppressWarnings("all") + protected NestedGeneric(final SuperBuilderNestedGenericTypes.NestedGeneric.NestedGenericBuilder b) { + super(b); + } + } + public interface OtherGeneric { + } +} -- cgit