[
https://issues.apache.org/jira/browse/BEANUTILS-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benedikt Ritter updated BEANUTILS-292:
--------------------------------------
Attachment: BEANUTILS-292.patch
Attaching a patch that adds Iterable<DynaBean> to ResultSetDynaClass and
Iterator<DynaBean> to ResultSetIterator. This will cause a Clirr Error, because
{{public Object next()}} has to be changed to {{public DynaBean next()}}. I
think for this reason it can not be included like this (but has to be changed
to implement Iterator without generics).
> ResultSetDynaClass should implement Iterable
> --------------------------------------------
>
> Key: BEANUTILS-292
> URL: https://issues.apache.org/jira/browse/BEANUTILS-292
> Project: Commons BeanUtils
> Issue Type: Improvement
> Affects Versions: 1.8.0-BETA
> Reporter: Johan
> Priority: Minor
> Fix For: LATER THAN 1.8.4
>
> Attachments: BEANUTILS-292.patch
>
>
> org.apache.commons.beanutils.ResultSetDynaClass already provides an
> iterator() method. If it would implement the Iterable interface too, it could
> be used with the new Java5 for loop construct, e.g.:
> for (final Object dynaBean : new ResultSetDynaClass(resultSet, false))
> {
> }
> Changes to ResultSetDynaClass are minimal and will not break the API.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira