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

public class MethodL {
  public static void main(String []argv) {
    List<Double> doubleList = new ArrayList<Double>();
    List<Float>  floatList  = new ArrayList<Float>();

    One<Double> o1 = new One<Double>();
    One<Float>  o2 = new One<Float>();
	List a = o1.m();
	List b = o2.m();
  }
}

interface I<N extends Number> { }

class One<Z extends Number> implements I<Z> {}

aspect X {
  public List I.m() { return null; } // ok, available in both parameterizations of One
}