I believe that this question has been asked recently and it got a response.
http://markmail.org/thread/rfcqarnvct3t2gh3 On Fri, Jan 25, 2013 at 11:24 AM, Pieter Claassen <[email protected] > wrote: > When I try to create the following model after migrating to wicket 6.5.0 > > new CompoundPropertyModel<ReportWebModel>(reportWebModel) > > *where* > > ReportWebModel extends BaseWebModel<Report> > > *and* > > BaseWebModel<T> implements IModel > > My IDE (Intellij) shows no problem with type checking the code but when I > try to compile it I get: > > java: reference to CompoundPropertyModel is ambiguous, both constructor > CompoundPropertyModel(org.apache.wicket.model.IModel<T>) in > org.apache.wicket.model.CompoundPropertyModel and constructor > CompoundPropertyModel(T) in org.apache.wicket.model.CompoundPropertyModel > match > > The problem goes away when I remove the generics but then I also lose the > type checking. > > Any suggestions? > > Thanks, > Pieter > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
