summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/ParameterizedMethodITD5.aj
blob: d41667d23010ad9a5044304bebf37b30a0666ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class C<A,B> { public B getB(A a) { return null; } }

aspect X {
  public List<C> C<D,C>.getBs(D ds) { return null; }
}

public class ParameterizedMethodITD5 {

  public static void main(String[]argv) { 
    C instance = new C<Integer,String>();

    Integer i = instance.getB("hello");

    List<String> ls = instance.getBs(3);
    
  }

}