[
https://issues.apache.org/jira/browse/BEANUTILS-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826416#comment-13826416
]
vakhtang koroghlishvili commented on BEANUTILS-346:
---------------------------------------------------
Also I have problem, when I need to get value from map, when key is enum type.
What do you think?
> Enum type is not supported
> --------------------------
>
> Key: BEANUTILS-346
> URL: https://issues.apache.org/jira/browse/BEANUTILS-346
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Affects Versions: 1.8.0-BETA
> Environment: JDK6
> Reporter: Miroslav Nachev
> Fix For: LATER THAN 1.8.4
>
>
> When I try to set some property of type Enum the exception is thrown. This
> can be fixed with the following code:
> private static class EnumConvertUtils extends ConvertUtilsBean {
> public EnumConvertUtils() {
> }
> @Override
> public Object convert(String value, Class clazz) {
> if(clazz.isEnum())
> return Enum.valueOf(clazz, value);
> return super.convert(value, clazz);
> }
> }
--
This message was sent by Atlassian JIRA
(v6.1#6144)