From c4d2a21b1609ca7473dedce2d855815146cb017f Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 25 Apr 2006 07:29:29 +0000 Subject: test and another part of the fix for 137496 --- tests/bugs152/pr137496/H.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/bugs152/pr137496/H.java (limited to 'tests/bugs152') 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 { + public T pm(T t); +// public String pm2(String t); +} + +interface C extends P { + 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 -- cgit v1.2.3