commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEANUTILS-452) Add generics
Date Fri, 08 Nov 2013 20:57:18 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817669#comment-13817669
] 

Oliver Heger commented on BEANUTILS-452:
----------------------------------------

Generics have been added and many warnings related to type-safety have been fixed. Below are
some comments about the progress and open points:
* Deprecated classes have not been touched; so there are still some warnings remaining in
the code.
* For some methods of {{ConverUtilsBean}} no suitable type parameters could be found. The
methods dynamically change the return type based on certain criteria.
* The same is true for {{LocaleConvertUtilsBean}}.
* In {{ResultSetIterator}} changes have been applied which may break compatibility. The return
type of the {{next()}} method has changed. I *assume* that this class is mainly used internally
by {{ResultSetDynaClass}} (however, it is public).
* For {{BeanMap}} the logic type parameters are <String, Object>; however, because of
backwards compatibility, only <Object, Object> can be used. Otherwise, method signatures
would change in incompatible ways.
* In {{BeanComparator}} not all type-safety warnings could be fixed. Here an internal comparator
is used for comparing the values of bean properties. The type of the properties is only known
at runtime.

> Add generics
> ------------
>
>                 Key: BEANUTILS-452
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-452
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>    Affects Versions: 1.8.3
>            Reporter: Oliver Heger
>             Fix For: 1.9.0
>
>
> BeanUtils now targets Java 1.5. The API should be updated to support generics.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message