aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR117882_2/inc1/src/pack/A.aj
blob: 1515c463bf4d39bd116e80b536cb496874d53213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package pack;

public aspect A {

	declare @type : C : @Annotation;
	
	declare parents : (@Annotation *) implements I;
	
	public void I.method() {
	}
	
	public static void main(String []argv) {
		new C().method();
          if (C.class.getAnnotation(pack.Annotation.class)==null) 
            throw new RuntimeException("Class C should have @Annotation on it");
	}

}