summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/FieldH.aj
blob: 40088e39525f11aacf3bf11bc590afb9de751027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.*;

public class FieldH {
  public static void main(String []argv) {
    Base<Integer> baseInt    = new Base<Integer>();
    Base<String>  baseString = new Base<String>();

    List<Integer> intList = new ArrayList<Integer>();
    List<String>  strList = new ArrayList<String>();
    baseInt.j    = intList;
    baseString.j = strList;
  }
}

class Base<N> { }

aspect X {
  public List<Z> Base<Z>.j; // OK, Z becomes N in first case, S in the second ;)
}