[
https://issues.apache.org/jira/browse/BEANUTILS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525036
]
Henri Yandell commented on BEANUTILS-293:
-----------------------------------------
The problem is in LazyDynaBean's createOtherProperty method. It has:
if (type == Object.class ||
type == String.class ||
type == Boolean.class ||
type == Character.class ||
Date.class.isAssignableFrom(type)) {
return null;
}
So any of those types will not get set up for some reason. I'm not sure why.
Anyone know?
> LazyDynaMap.getDynaProperties() bug
> -----------------------------------
>
> Key: BEANUTILS-293
> URL: https://issues.apache.org/jira/browse/BEANUTILS-293
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Affects Versions: 1.8.0-BETA
> Reporter: Davide Angelocola
> Attachments: BEANUTILS-293-test.patch
>
>
> LazyDynaMap lazyDynaMap = new LazyDynaMap();
> lazyDynaMap.add("foo", String.class);
> assertNotNull(lazyDynaMap.getDynaProperties()[0].getType());
> this test will fail. It is correct?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.