瀏覽代碼

field sets are void

tags/V_1_1_b2
jhugunin 21 年之前
父節點
當前提交
07f68f155d
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      tests/new/AroundCasting.java

+ 3
- 3
tests/new/AroundCasting.java 查看文件

@@ -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;
}


Loading…
取消
儲存