summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj
blob: 44194fae1afebbfbc2deed996b4511336156a572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Static ITD of a field onto a generic type that utilises
 * a type variable from the target generic
 */
import java.util.*;

class MathUtils<N> { 

}

public class StaticFieldITDOnGenericType {
  public static void main(String[] argv) {
    MathUtils<Integer>.n=42;
    System.err.prinltn(">"+MathUtils<Integer>.n);
  }
}

aspect X {
  static E MathUtils<E>.n;
}