summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/MethodA.aj
blob: 66a555cbf2d30f1d735e464947241460649b1c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.util.*;

public class MethodA {
  public static void main(String []argv) {
    Base<Integer> base    = new Base<Integer>();
    List<Integer> intList = new ArrayList<Integer>();
    base.m(intList);
  }
}

class Base<N extends Number> { }

aspect X {
  public void Base<Z>.m(List<Z> lz) {}; // OK, Z becomes N in parameter
}