]> source.dussan.org Git - aspectj.git/commitdiff
add missing testdata
authorAndy Clement <aclement@pivotal.io>
Fri, 22 Sep 2017 22:30:33 +0000 (15:30 -0700)
committerAndy Clement <aclement@pivotal.io>
Fri, 22 Sep 2017 22:30:33 +0000 (15:30 -0700)
tests/bugs190/520135/FailsApectJ.java [new file with mode: 0644]

diff --git a/tests/bugs190/520135/FailsApectJ.java b/tests/bugs190/520135/FailsApectJ.java
new file mode 100644 (file)
index 0000000..b7d67af
--- /dev/null
@@ -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 <T> Function<String, Collection<String>> ASpectJFailWithWildCardAndVarArgeMethodReference() {
+        Function<T, ? extends Object> x = a -> a; // the wild card fails the compile
+        x.andThen(this::get);
+        return null;
+    }
+
+    private <T> List<T> get(T... args) {
+        return Arrays.asList(args);
+    }
+
+}