From 34a6fd644f6036bef5c2d94d925b6cf8e20ab17d Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Fri, 18 Dec 2015 20:17:47 +0100 Subject: fix issue #932: `@Delegate` would not generate varargs on javac --- .../resource/after-ecj/DelegateWithVarargs.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/transform/resource/after-ecj/DelegateWithVarargs.java (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/DelegateWithVarargs.java b/test/transform/resource/after-ecj/DelegateWithVarargs.java new file mode 100644 index 00000000..a0b5b7b5 --- /dev/null +++ b/test/transform/resource/after-ecj/DelegateWithVarargs.java @@ -0,0 +1,25 @@ +import lombok.experimental.Delegate; +class DelegateWithVarargs { + private interface Bar { + void justOneParameter(int... varargs); + void multipleParameters(String first, int... varargs); + void array(int[] array); + void arrayVarargs(int[]... arrayVarargs); + } + private @Delegate Bar bar; + DelegateWithVarargs() { + super(); + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void array(final int[] array) { + this.bar.array(array); + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void arrayVarargs(final int[]... arrayVarargs) { + this.bar.arrayVarargs(arrayVarargs); + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void justOneParameter(final int... varargs) { + this.bar.justOneParameter(varargs); + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void multipleParameters(final java.lang.String first, final int... varargs) { + this.bar.multipleParameters(first, varargs); + } +} -- cgit