aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/DecaTypeBin2.aj
blob: c43877c685329d81699620dfd0de672ece0b4310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME) @interface ComplexAnnotation {
  int ival();
  byte bval();
  char cval();
  long jval();
  double dval();
  boolean zval();
  short sval();
  float fval();
  String s();
}

public aspect DecaTypeBin2 {
  declare @type: A : @ComplexAnnotation(ival=4,bval=2,cval=5,fval=3.0f,dval=33.4,zval=false,jval=56,sval=99,s="s");
}

aspect X {
  before(): execution(* *(..)) && @this(ComplexAnnotation) {
    System.err.println("ComplexAnnotation identified on "+thisJoinPoint);
  }
}