summaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr126355/Pair.java7
-rw-r--r--tests/bugs152/pr126355/Test.java5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs152/pr126355/Pair.java b/tests/bugs152/pr126355/Pair.java
new file mode 100644
index 000000000..385b403d7
--- /dev/null
+++ b/tests/bugs152/pr126355/Pair.java
@@ -0,0 +1,7 @@
+public class Pair<F, S> {
+ public Pair(F first, S second) { }
+}
+
+aspect IdempotentCache pertarget(cached()) {
+ pointcut cached(): execution(public * *(..)) && within(Pair);
+}
diff --git a/tests/bugs152/pr126355/Test.java b/tests/bugs152/pr126355/Test.java
new file mode 100644
index 000000000..a87128f1e
--- /dev/null
+++ b/tests/bugs152/pr126355/Test.java
@@ -0,0 +1,5 @@
+public class Test {
+ public static void main (String args[]) {
+ Pair<String,String> pair = new Pair<String,String>("one","two");
+ }
+}