aboutsummaryrefslogtreecommitdiff
path: root/test/transform/knownBroken
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2017-03-13 16:49:20 +0100
committerJan Rieke <rieke@subshell.com>2017-03-13 16:49:20 +0100
commit2346b15c8d2809b6efa9fc94f4f6cc56dcaa54b8 (patch)
tree238b9877ce1daa83b3e8d422eb4d2f7ab89f3864 /test/transform/knownBroken
parentf51bbce3e396a0151bc0242d00e250f2bc720316 (diff)
parenta2c10c70fa8e2c8736464a5c3d445e2ca6e8a296 (diff)
downloadlombok-2346b15c8d2809b6efa9fc94f4f6cc56dcaa54b8.tar.gz
lombok-2346b15c8d2809b6efa9fc94f4f6cc56dcaa54b8.tar.bz2
lombok-2346b15c8d2809b6efa9fc94f4f6cc56dcaa54b8.zip
Merge remote-tracking branch 'upstream/master'
# Conflicts: # src/core/lombok/eclipse/handlers/HandleBuilder.java # src/core/lombok/eclipse/handlers/HandleConstructor.java # src/core/lombok/javac/handlers/HandleBuilder.java # src/core/lombok/javac/handlers/HandleConstructor.java
Diffstat (limited to 'test/transform/knownBroken')
-rw-r--r--test/transform/knownBroken/before/I1132RecursiveGenerics.java19
-rw-r--r--test/transform/knownBroken/before/I1302BuilderInInstanceInnerClass.java5
2 files changed, 24 insertions, 0 deletions
diff --git a/test/transform/knownBroken/before/I1132RecursiveGenerics.java b/test/transform/knownBroken/before/I1132RecursiveGenerics.java
new file mode 100644
index 00000000..781886a7
--- /dev/null
+++ b/test/transform/knownBroken/before/I1132RecursiveGenerics.java
@@ -0,0 +1,19 @@
+// Compile with javac, it'll think the T in the generated build() method isn't type compatible.
+// Yet, when you take the delomboked output (which delombok will give, but with errors), THAT does compile.
+
+public class I1132RecursiveGenerics {
+ public static class Recursive<T extends Recursive<T>> {}
+ public static final class Rec extends Recursive<Rec> {}
+
+ @lombok.Builder(builderClassName = "MethodBuilder")
+ public static <T extends Recursive<T>> T create() {
+ return null;
+ }
+
+ public static void main(String[] args) {
+ final MethodBuilder<Rec> builder = I1132RecursiveGenerics.builder();
+ final Rec rec = builder.build();
+// final Rec rec = I1132RecursiveGenerics.<Rec>builder().build();
+ }
+}
+
diff --git a/test/transform/knownBroken/before/I1302BuilderInInstanceInnerClass.java b/test/transform/knownBroken/before/I1302BuilderInInstanceInnerClass.java
new file mode 100644
index 00000000..cf37abc4
--- /dev/null
+++ b/test/transform/knownBroken/before/I1302BuilderInInstanceInnerClass.java
@@ -0,0 +1,5 @@
+public class I1302BuilderInInstanceInnerClass {
+ @lombok.Builder public class NonStaticInner {
+ private int test;
+ }
+}