summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/genericaspects/DecPrecedenceGenericTest.aj
blob: 7b95f079a602da7dc36b1a03017b0cf2145cc3dd (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
29
30
31
32
33
34
abstract aspect DecPrecedenceSuper<X,Y> {
	
	declare precedence: X,Y;
	
}

aspect Sub extends DecPrecedenceSuper<A1,A2> {}

public class DecPrecedenceGenericTest {
	
	public static void main(String[] args) {
		new C().foo();
	}
}


aspect A2 {
	
	before() : execution(* C.*(..)) { System.out.println("A2"); }
	
}


aspect A1 {
	
	before() : execution(* C.*(..)) { System.out.println("A1"); }

}

class C {
	
	void foo() {}
	
}