aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/ParsingAndMatching1.java
blob: 9c6ab82aa88c271d5b2769f558a3b99b632db1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// lock and static context

public aspect ParsingAndMatching1 {

	before(): lock() {
		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");
		}
	}
}