aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/AroundChangeThis.java
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-01-13 11:27:59 +0000
committeracolyer <acolyer>2004-01-13 11:27:59 +0000
commit19ed0a21b822004f6f2c688518c4230965a3b512 (patch)
tree5680a8ccc55b3d2bbe634b38717d08dc6328f214 /tests/new/AroundChangeThis.java
parent346fd1c4acfa5360e1a71aa171da283251ef99bf (diff)
downloadaspectj-19ed0a21b822004f6f2c688518c4230965a3b512.tar.gz
aspectj-19ed0a21b822004f6f2c688518c4230965a3b512.zip
move to Eclipse 3.0 M6 JDT core (v_396). Also makes 1.4 the
default mode (inherited behaviour from JDT).
Diffstat (limited to 'tests/new/AroundChangeThis.java')
-rw-r--r--tests/new/AroundChangeThis.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/new/AroundChangeThis.java b/tests/new/AroundChangeThis.java
index bf96cdd9b..826e95b52 100644
--- a/tests/new/AroundChangeThis.java
+++ b/tests/new/AroundChangeThis.java
@@ -12,15 +12,23 @@ public class AroundChangeThis {
c1.m(sc);
Tester.checkAndClearEvents(new String[] { "c1.m(sc)", "sc.m(c1)" });
- sc.m(c1);
- Tester.checkAndClearEvents(new String[] { "sc.m(c1)", "c1.m(sc)" });
-
+// this is the 1.3 behaviour
+// sc.m(c1);
+// Tester.checkAndClearEvents(new String[] { "sc.m(c1)", "c1.m(sc)" });
+
+ try {
+ // the 1.4 behaviour is....
+ // in byte code we have a call to SubC.m
+ sc.m(c1);
+ Tester.checkFailed("Expected ClassCastException");
+ } catch (ClassCastException e) {
+ }
+
try {
sc.m1(c1);
+ Tester.checkFailed("Expected ClassCastException");
} catch (ClassCastException e) {
- Tester.event("ClassCastException");
}
- Tester.checkAndClearEvents(new String[] { "ClassCastException" });
Tester.printEvents();
}