aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr86818/Four.java
blob: 6ed474fd0c64711d833c6399aeaccd467e1c192e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Four.m() is ITD from another aspect - and itd is annotated
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME) @interface A {}

public class Four {
//  public void m() {} --> gone to aspect
  public static void main(String []argv) {
   if (!(new Four() instanceof java.io.Serializable)) System.err.println("declare parents failed");
  }
}

aspect Y {
  public void Four.m() {}
}
aspect X {
  declare parents: hasmethod(@A * * *(..)) implements java.io.Serializable;
}