aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/decps/Basic1b.java
blob: 46e4e9bfb2ed3fa99697b7afaa44f36de62a0ff0 (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("Basic1b")
  private I someField;

}