aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR149293_1/base/src/mypackage/MyAbstractClass.java
blob: 8f7fed612c3ac0d5ce2391bf66f59d25180c8675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package mypackage;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public abstract class MyAbstractClass implements MyInterface {

	@Retention(RetentionPolicy.RUNTIME)
	private @interface MyAspectPresent {
	}

	public MyAbstractClass() {
		if (!getClass().isAnnotationPresent(MyAspectPresent.class)) {
			throw new RuntimeException("MyAspect has not been woven into "
					+ getClass());
		}
	}

}