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

class Base { }

public class GenericMethodITD1 {

  public static void main(String[] argv) {
    List<A> as = new ArrayList<A>();
    new Base().simple(as); // this is OK, <E>s upper bound is object
  }
}

class A {}

aspect X {
  <E> void Base.simple(List<? extends E> list) {}
}