logo       

[jira] Commented: (BEANUTILS-353) Unable to call isUseDefault() to check wh: msg#00414

issues-commons-apache

Subject: [jira] Commented: (BEANUTILS-353) Unable to call isUseDefault() to check whether a default value will be returned


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

Niall Pemberton commented on BEANUTILS-353:
-------------------------------------------

The isUseDefault() method is not part of the "Converter" contract, so unless it
was then there is no guarantee that the registered implementation has that
method.

http://commons.apache.org/beanutils/v1.8.0/apidocs/org/apache/commons/beanutils/Converter.html

These converters are in a "per-classloader" static instance. in
ConvertUtilsBean. If the default converters are not configured appropriately
for your needs then you should register your own when the application starts up.


> Unable to call isUseDefault() to check whether a default value will be
> returned
> -------------------------------------------------------------------------------
>
> Key: BEANUTILS-353
> URL: https://issues.apache.org/jira/browse/BEANUTILS-353
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: ConvertUtils & Converters
> Affects Versions: 1.8.0
> Environment: WinXP Pro, JDK 1.6.0_14, Tomcat 5.5.27
> Reporter: Franklin Phan
>
> One can never call isUseDefault() to check on a Converter given the way you
> have ConverterFacade designed and in ConvertUtilsBean:
> {{
> private void register(Class clazz, Converter converter) {
> register(new ConverterFacade(converter), clazz);
> }
> }}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise