[ 
https://issues.apache.org/jira/browse/BEANUTILS-346?focusedWorklogId=333692&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-333692
 ]

ASF GitHub Bot logged work on BEANUTILS-346:
--------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/19 19:25
            Start Date: 24/Oct/19 19:25
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on pull request #16: 
[BEANUTILS-346] New converter for Enum
URL: https://github.com/apache/commons-beanutils/pull/16
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 333692)
    Time Spent: 20m  (was: 10m)

> 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
>            Priority: Major
>             Fix For: 2.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)

Reply via email to