aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-01-09 05:36:45 +0000
committerwisberg <wisberg>2004-01-09 05:36:45 +0000
commite683ed8b8b217808f653a3231a56164ef03a689b (patch)
treeff9306276b62b4dca8100e1199894f285096b7c2 /tests/harness
parentffe55e7229887db7c2c404669ae5e95c7864ef64 (diff)
downloadaspectj-e683ed8b8b217808f653a3231a56164ef03a689b.tar.gz
aspectj-e683ed8b8b217808f653a3231a56164ef03a689b.zip
harness tests for extra source locations and details
Diffstat (limited to 'tests/harness')
-rw-r--r--tests/harness/CompoundMessage.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/harness/CompoundMessage.java b/tests/harness/CompoundMessage.java
new file mode 100644
index 000000000..88d258411
--- /dev/null
+++ b/tests/harness/CompoundMessage.java
@@ -0,0 +1,16 @@
+
+class A { void run() {} }
+class B extends A {}
+aspect C {
+ before() : runB() { }
+ pointcut runB(): call(void B.run()); // CW 6 XLint, for each shadow (12, 14)
+
+}
+public class CompoundMessage {
+ public static void main(String[] args) {
+ // ok with -1.4; otherwise, becomes A.run in bytecode
+ new B().run(); // CW 12 DW
+ // never works - compile-time type of reference is A, not B
+ new B().run(); // CW 12 DW
+ }
+}