aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features161/optimizedAnnotationBinding/CaseFive.java
blob: 3f4c69e1e8b36d8ae4e8f91ac1dc5b4314de8d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CaseFive - not an enum, compiler limitation
import java.lang.annotation.*;

public class CaseFive {

  public static void main(String []argv) {
    CaseFive o = new CaseFive();
    o.a();
  }

  @Anno(4.0f) public void a() {}

}

@Retention(RetentionPolicy.RUNTIME)
@interface Anno { float value(); }

aspect X {

  before(float l): execution(@Anno * *(..)) && @annotation(Anno(l)) {
    System.out.println(l);
  }
}