[
https://issues.apache.org/jira/browse/WICKET-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johannes Schneider updated WICKET-1512:
---------------------------------------
Attachment: two_parameters.patch
Maybe I am wrong - so please correct me.
But I think this version is more correct.
org.apache.wicket.markup.repeater.data.IDataProvider#iterator doesn't return
the same type as model() in every case. There could happen some magic within
the model() method that creates some sort of representation.
> Widen Generics for Lists/Iteratos
> ---------------------------------
>
> Key: WICKET-1512
> URL: https://issues.apache.org/jira/browse/WICKET-1512
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-M1
> Reporter: Johannes Schneider
> Assignee: Johan Compagner
> Attachments: two_parameters.patch,
> Widening_Generics_for_IDataProvider.patch
>
>
> It is important to widen the generics for collections.
> For example it is better (and sometimes necessary) to change the signature of
> org.apache.wicket.markup.repeater.data.IDataProvider#iterator to:
> Iterator<? extends T> iterator(int first, int count);
> I will create and add a patch later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.