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

public abstract aspect AbstractTest {

	private int field;
	protected String s = "test";

	protected abstract pointcut pc();

	Object around(): pc() {
		this.field++;
		s += "-1";
		hook();
		return proceed();
	}

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

	protected abstract void hook();
}