mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-17 14:10:58 +02:00
25 lines
342 B
Java
25 lines
342 B
Java
public class V {
|
|
|
|
public static int staticVar;
|
|
public int instanceVar;
|
|
|
|
public static void main(String[] argv) {
|
|
new V().m();
|
|
}
|
|
|
|
public void m() {
|
|
staticVar = 4;
|
|
instanceVar = 5;
|
|
}
|
|
|
|
static {
|
|
System.err.println("In static initializer");
|
|
}
|
|
|
|
}
|
|
|
|
aspect Vaspect pertypewithin(V) {
|
|
|
|
before(): within(*) { }
|
|
}
|