Zdravím,

proč toto nefunguje?

private class B {}
        
private class Test<T> {
    void doSomething(T param) {}
}

a nekde potrebuji

Test<? extends B> t = new Test<B>();
t.doSomething(new B()); // toto nelze zkompilovat

diky

-- 
Martin Beránek
ICZ a.s., Pobočka Brno
Londýnské náměstí 2/856, 639 00  Brno
Tel.: +420 222 272 323
Tel.: +420 222 272 111
Fax.: +420 222 272 122
mailto:[email protected]
http://www.i.cz

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Odpovedet emailem