summaryrefslogtreecommitdiffstats
path: root/tests/bugs/protectedvf/main/p2/AbstractTest.aj
blob: 0c8b040c4fe3c30fd8408f4292e45f22cfd09cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main.p2;

public abstract aspect AbstractTest {

	private int field;

	protected abstract pointcut pc();

	Object around(): pc() {
		this.field++;
		hook();
		return proceed();
	}

	protected final int getField() {
		return this.field;
	}

	protected abstract void hook();
}