aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/genericaspects/GenericAspectB.aj
blob: 39d26222358d3b83a2b7a1b69ae4e6c057d5fa00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Decp a generic interface
abstract aspect GenericAspect<A> {

  declare parents: A implements SimpleI;

  interface SimpleI<X> {}

}

aspect GenericAspectB extends GenericAspect<Base> {
  public static void main(String []argv) {
    Base b = new Base();
    if (!(b instanceof SimpleI)) 
      throw new RuntimeException("Base should implement SimpleI!");
  }
}

class Base {}