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

vakhtang koroghlishvili edited comment on BEANUTILS-453 at 11/22/13 1:19 PM:
-----------------------------------------------------------------------------

Yes, you are right, when we iterate over all keys contained in the map is not 
very good(in spite of  this code only executes, when there is enum key in the 
map).

What do you think, what is the best solution, when we have map with enum key?  
We should not implement that issue because map should use string key? (the 
problem is that, sometimes we work on the API's that have structure something 
like that).

There is no way to get value from map (which use enum), except of iterating.



was (Author: v.koroghlishvili):
Yes, you are right, when we iterate over all keys contained in the map is not 
very good(in spite of  thas code only executes, when there is enum key in the 
map).
What do you think, what is the best solution, when we have map with enum key?  
We should not implement that issue because map should use string key? There is 
no way to get value from map (which use enum), except of iterating. 


> there was no why, to get value from the map, which have the key type of enum
> ----------------------------------------------------------------------------
>
>                 Key: BEANUTILS-453
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-453
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3, 1.8.4, 1.9.0
>            Reporter: vakhtang koroghlishvili
>            Priority: Critical
>              Labels: features, patch, test
>         Attachments: MapWithEnumKey_withTestCase.patch
>
>
> There was no why, to get value from the map, which have key type of Enum. So 
> I solve the problem and I will upload my patch (with Junit test cases).



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

Reply via email to