aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/reflection/AtAspectJDeclareParents.aj
blob: 2882c87344db13762b815f52a8364428113ebb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import org.aspectj.lang.annotation.*;

public aspect AtAspectJDeclareParents {
	
	@DeclareParents("C")
	public static I mixin = new Impl();
	
}

class C {}

interface I{}

class Impl implements I {
	
	private int x;
	
	public int getX() { return this.x; }
	
	public void setX(int x) { this.x = x; }
}