commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vakhtang koroghlishvili (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEANUTILS-453) there was no why, to get value from the map, which have the key type of enum
Date Fri, 22 Nov 2013 13:12:35 GMT

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

vakhtang koroghlishvili commented on BEANUTILS-453:
---------------------------------------------------

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? 
We can create something like this - if we have  something like this: data.<key> then,
key is enum- but may be this is not good solution. 

> 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)

Mime
View raw message