@@ -0,0 +1,5 @@ | |||
class A { | |||
private | |||
int foo; | |||
int goo; | |||
} |
@@ -0,0 +1,14 @@ | |||
privileged aspect Test { | |||
before(): get(* foo) {} | |||
// before(): get(* goo) {} | |||
public int A.getFoo() { | |||
return foo; | |||
} | |||
// public int A.getGoo() { | |||
// return goo; | |||
// } | |||
} |
@@ -0,0 +1,14 @@ | |||
privileged aspect Test { | |||
before(): get(* foo) {} | |||
// before(): get(* goo) {} | |||
public int A.getFoo() { | |||
return foo; | |||
} | |||
// public int A.getGoo() { | |||
// return goo; | |||
// } | |||
} |