I'm writing a custom BooleanChoiceFilteredPropertyColumn<T> extends
ChoiceFilteredPropertyColumn<T> (on 1.4-m3).  When implementing

        @Override
        public void populateItem(final Item cellItem, final String componentId,
final IModel model)

I get a warning about Item and IModel needing to be parameterized.  Makes
sense.  But if I parameterize it, I get:

Name clash: The method populateItem(Item<ICellPopulator<T>>, String,
IModel<T>) of type BooleanChoiceFilteredPropertyColumn<T> has the same
erasure as populateItem(Item, String, IModel) of type PropertyColumn<T> but
does not override it    BooleanChoiceFilteredPropertyColumn.java

So it turns out that even though Item and IModel have been generified (as
well as PropertyColumn), the signature of populateItem in PropertyColumn is
still:

        public void populateItem(Item item, String componentId, IModel model)

Shouldn't that be:

        public void populateItem(Item<ICellPopulator<T>> item, String 
componentId,
IModel<T> model)

, the way it is in ICellPopulator? Am I smoking or misunderstanding
generics?

Luke
-- 
View this message in context: 
http://www.nabble.com/PropertyColumn-and-generics-tp20335170p20335170.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to