aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/decps/Basic1b.java
blob: bdbadd9b7838284e67660f3b6a9d49dd3bfdff9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import org.aspectj.lang.annotation.*;

public class Basic1b {
  public static void main(String []argv) {
    Basic1b b = new Basic1b();
    if (!(b instanceof X.I)) throw new RuntimeException("Basic1b should implement I");
  }
}



@Aspect
class X {

  interface I { 
  }
 
  @DeclareParents("Basic1bb")
  private I someField;

}