aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/DecaTypeBin9.aj
blob: f875df16090ba377faf40a1e39a3acaadec66ccb (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 DecaTypeBin9 {
  declare @type: A* : @ColorT("Red");
  declare @type: A* : @ColorA("Green");
}