aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr345515/Code.java
blob: 942a33770fe8f829b3db163ea0cacd711c5b18eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Anno {
  String string();
}

@Retention(RetentionPolicy.RUNTIME)
@interface Anno2 {
  String string() default "abc";
}


public class Code {

  @Anno(string="hello")
  int field;

  public static void main(String []argv) {
  }

}

aspect X {
  declare @field: @Anno(string=$1) * *: @Anno2(string=$1);
}