aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs190
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2017-09-22 15:30:33 -0700
committerAndy Clement <aclement@pivotal.io>2017-09-22 15:30:33 -0700
commitad514d54b1014bbfa085096419080c9fc6e1642b (patch)
tree7740ed9ba7455387582fd90598eb4635f69a7671 /tests/bugs190
parentfaac3d84e254d747076dc258f9a059839946a274 (diff)
downloadaspectj-ad514d54b1014bbfa085096419080c9fc6e1642b.tar.gz
aspectj-ad514d54b1014bbfa085096419080c9fc6e1642b.zip
add missing testdata
Diffstat (limited to 'tests/bugs190')
-rw-r--r--tests/bugs190/520135/FailsApectJ.java24
1 files changed, 24 insertions, 0 deletions
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 <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);
+ }
+
+}