aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/pr363979/Example.java
blob: 0e519000043d139bdc92c58ab664fa95514da93b (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
27
28
29
import java.lang.annotation.*;

aspect X {
declare parents: 
  @SomeAnnotation(a = @Foo) * implements java.io.Serializable;
}

  @SomeAnnotation(a = @Foo)
  public class Example { 

public static void main(String []argv) {
  Example e = new Example();
if (e instanceof java.io.Serializable) {
System.out.println("yes");
} else {
System.out.println("no");
}
}

}

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

@Retention(RetentionPolicy.RUNTIME)
@interface SomeAnnotation {
  Foo a();
}