aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/DecaTypeBin8.aj
blob: c777c83eb9236ba58925ba122d47ea11ee8c4109 (plain)
1
2
3
4
5
6
7
8
9
10
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @interface ColorT { String value();} 
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) @interface ColorA { String value();} 

public aspect DecaTypeBin8 {
  declare @type: A : @ColorT("Red");
  declare @type: A : @ColorA("Green");
}