summaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/ParsingAndMatching2.java
blob: 87599cb073ac5141dd4f21544ca86d2f38f2a69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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");
		}
	}
}