mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
25 lines
445 B
Java
25 lines
445 B
Java
import org.aspectj.testing.Tester;
|
|
|
|
public class NewAnonymous {
|
|
public static void main(String[] args) {
|
|
}
|
|
}
|
|
|
|
|
|
class C {
|
|
private String f = "fC";
|
|
public void m(final String s) {
|
|
new Runnable() {
|
|
public void run() {
|
|
System.out.println(s+":"+f);
|
|
}
|
|
}.run();
|
|
}
|
|
}
|
|
|
|
aspect A {
|
|
before(): call(*.new()) {
|
|
System.out.println("new Runnable");
|
|
}
|
|
}
|