aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/annotationGen/InnerAspectAspect.aj
blob: 324c9bb3af7e9f104bc70acfacbd115b305a7348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import org.aspectj.lang.annotation.Aspect;
import java.lang.annotation.*;

public aspect InnerAspectAspect {
	
	public static void main(String[] args) {
		Annotation[] annotations = InnerAspect.class.getAnnotations();
		if (annotations.length != 1) throw new RuntimeException("Should have one annotation");
		Aspect aspectAnnotation = (Aspect) annotations[0];
		if (!aspectAnnotation.value().equals("")) throw new RuntimeException("value should be empty");
	}
	
	private static aspect InnerAspect {}
	
}