Browse Source

field sets are void

tags/V_1_1_b2
jhugunin 21 years ago
parent
commit
07f68f155d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tests/new/AroundCasting.java

+ 3
- 3
tests/new/AroundCasting.java View File



public class AroundCasting { public class AroundCasting {
public static void main(String[] args) { public static void main(String[] args) {
Tester.checkEqual(x = 3, 1003);
Tester.checkEqual(x, 3);
Tester.checkEqual(x = 3, 3);
Tester.checkEqual(x, 1003);
Tester.checkEvents(new String[] { "enter main" }); Tester.checkEvents(new String[] { "enter main" });
} }
static int x; static int x;
aspect A { aspect A {
static boolean test() { return true; } static boolean test() { return true; }


int around(): if (test()) && set(int AroundCasting.x) {
int around(): if (test()) && get(int AroundCasting.x) {
return proceed() + 1000; return proceed() + 1000;
} }



Loading…
Cancel
Save