summaryrefslogtreecommitdiffstats
path: root/tests/bugs/AroundNames.java
blob: 27b2aa7f38adda43c7fb7cd799c8633699754f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public class AroundNames {
	public static void main(String[] args) {
		new Base().doit();
		new Derived().doit();
	}
}

class Base {
	static private final void m() {}
	
	public void doit() {
		m();
	}
}

class Derived {
	static private final void m() { return; } // "Derived"; }
	
	public void doit() {
		m();
	}
}

aspect A {
	Object around(): execution(* m()) {
		return proceed();
	}
}