Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CtorA.aj 398B

1234567891011121314151617
  1. import java.util.*;
  2. public class CtorA {
  3. public static void main(String []argv) {
  4. List<Integer> intList = new ArrayList<Integer>();
  5. Base<Integer> base = new Base<Integer>(intList);
  6. }
  7. }
  8. class Base<N extends Number> {
  9. public Base() {}
  10. <Y extends Number> Base(Set<N> sn, List<Y> ys) {}
  11. }
  12. aspect X {
  13. public Base<Z>.new(List<Z> lz) { this(); } // OK, Z becomes N in parameter
  14. }