summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/genericaspects/GenericAspectF.aj
blob: bf488eadc6221d9e97e1ac520683218198e652b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.*;
abstract aspect GenericAspect<A> {

  interface SimpleI<N extends Number> {}

  declare parents: A implements SimpleI<Integer>;

  public List<N> SimpleI<N>.ln;
  public J SimpleI<J>.n;

}

aspect GenericAspectF extends GenericAspect<Base> {
  public static void main(String []argv) {
    Base b = new Base();

    b.ln=new ArrayList<Integer>();
    b.n=new Integer(5);
  }
}

class Base {}