summaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-23 10:37:22 +0000
committeraclement <aclement>2006-05-23 10:37:22 +0000
commit7d99a23266ff26d1be0bd46af8ab7b3951cb9230 (patch)
tree1f3a44ca1e7a0b7df65be7b06863a59d56bcd7a6 /tests/bugs152
parent69e24e90d4fee7115ecbc8c7786915b1f741471b (diff)
downloadaspectj-7d99a23266ff26d1be0bd46af8ab7b3951cb9230.tar.gz
aspectj-7d99a23266ff26d1be0bd46af8ab7b3951cb9230.zip
test and fix for first part of 126355
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");
+ }
+}