aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs165/pr275625/A.java
blob: 8b4226871b5aebcf0ca0eda175df8d26cba7432e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.lang.annotation.*;

public class A {
  public void m() {}

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

}

aspect X {
  declare @method: @J * A.m(): @I;
  declare @method: * A.m(): @K;
  declare @method: @K * A.m(): @J;
}

@Retention(RetentionPolicy.RUNTIME)
@interface I {}
@Retention(RetentionPolicy.RUNTIME)
@interface J {}
@Retention(RetentionPolicy.RUNTIME)
@interface K {}