From ad514d54b1014bbfa085096419080c9fc6e1642b Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Fri, 22 Sep 2017 15:30:33 -0700 Subject: [PATCH] add missing testdata --- tests/bugs190/520135/FailsApectJ.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs190/520135/FailsApectJ.java diff --git a/tests/bugs190/520135/FailsApectJ.java b/tests/bugs190/520135/FailsApectJ.java new file mode 100644 index 000000000..b7d67af4d --- /dev/null +++ b/tests/bugs190/520135/FailsApectJ.java @@ -0,0 +1,24 @@ +package com.afrozaar.aspectj.test; + +import java.util.function.Function; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +public class FailsApectJ { + static aspect X { + before(): within(FailsApectJ) && call(* *(..)) {} + } + + private Function> ASpectJFailWithWildCardAndVarArgeMethodReference() { + Function x = a -> a; // the wild card fails the compile + x.andThen(this::get); + return null; + } + + private List get(T... args) { + return Arrays.asList(args); + } + +} -- 2.39.5