]> source.dussan.org Git - aspectj.git/commitdiff
field sets are void
authorjhugunin <jhugunin>
Wed, 18 Dec 2002 03:26:53 +0000 (03:26 +0000)
committerjhugunin <jhugunin>
Wed, 18 Dec 2002 03:26:53 +0000 (03:26 +0000)
tests/new/AroundCasting.java

index 8fbc98bf613b1821bcfd5ed43151d959e92a623c..cabb04a39d7d82a4d9f7ec5d955e5724b4735580 100644 (file)
@@ -2,8 +2,8 @@ import org.aspectj.testing.Tester;
 
 public class AroundCasting {
     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" });
     }
     static int x;
@@ -13,7 +13,7 @@ public class AroundCasting {
 aspect A {
     static boolean test() { return true; }
 
-    int around(): if (test()) && set(int AroundCasting.x) {
+    int around(): if (test()) && get(int AroundCasting.x) {
         return proceed() + 1000;
     }