mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-28 05:55:04 +02:00
18 lines
352 B
Java
18 lines
352 B
Java
![]() |
// unlock and static context
|
||
|
|
||
|
public aspect ParsingAndMatching2 {
|
||
|
|
||
|
before(): unlock() {
|
||
|
System.err.println("Advice running at "+thisJoinPoint.getSourceLocation());
|
||
|
}
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
staticM();
|
||
|
}
|
||
|
|
||
|
public static void staticM() {
|
||
|
synchronized (String.class) {
|
||
|
System.err.println("static method running");
|
||
|
}
|
||
|
}
|
||
|
}
|