aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr137496
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-25 07:29:29 +0000
committeraclement <aclement>2006-04-25 07:29:29 +0000
commitc4d2a21b1609ca7473dedce2d855815146cb017f (patch)
treec5e4fc65e247f4b1576e1998a2f48c34f0ada93e /tests/bugs152/pr137496
parent6b2526fdda56e30d8a151ca0b9bd16ecb690d3d0 (diff)
downloadaspectj-c4d2a21b1609ca7473dedce2d855815146cb017f.tar.gz
aspectj-c4d2a21b1609ca7473dedce2d855815146cb017f.zip
test and another part of the fix for 137496
Diffstat (limited to 'tests/bugs152/pr137496')
-rw-r--r--tests/bugs152/pr137496/H.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs152/pr137496/H.java b/tests/bugs152/pr137496/H.java
new file mode 100644
index 000000000..b0c3dd6c5
--- /dev/null
+++ b/tests/bugs152/pr137496/H.java
@@ -0,0 +1,28 @@
+interface P<T> {
+ public T pm(T t);
+// public String pm2(String t);
+}
+
+interface C extends P<String> {
+ public void cm();
+}
+
+class CImpl implements C {
+ public void cm() {}
+ public String pm(String s) { System.err.println(s);return s;}
+// public String pm2(String s) { return s;}
+}
+
+public class H {
+
+ public static void main(String []argv) {
+ C test = new CImpl();
+ test.pm("foo"); // manifests as 'Object pm(Object) call' due to type C being used
+// test.pm2("foo");
+ }
+}
+
+aspect X {
+ Object around(): call(* pm(..)) { System.err.println("advice"); return null;}
+// before(): call(* pm2(..)) {}
+} \ No newline at end of file