OK, my own fault: DropDownChoice<? extends BaseClass> ps = new DropDownChoice<BaseClass>() so the variable type spoils it.
** Martin 2009/6/13 James Carman <jcar...@carmanconsulting.com>: > On Sat, Jun 13, 2009 at 9:25 AM, Martin > Makundi<martin.maku...@koodaripalvelut.com> wrote: >>>> DropDownChoice<? extends BaseClass> dropDown = new DropDownChoice<? >>>> extends BaseClass>("id"); >>> >>> You can't instantiate with a wildcard type. That's not allowed by the >>> Java language. >> >> Ah yes... I'm getting confused myself. So the real problem is that I >> instantiate new DropDownChoice<BaseClass>("id") but the method >> getChoiceRenderer() returns IChoiceRenderer<? extends BaseClass>() >> which is impractical. >> >> Now that's the problem. > > That's not what it returns (at least not in trunk or rc4) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org