Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4766C108FC for ; Fri, 22 Nov 2013 13:24:40 +0000 (UTC) Received: (qmail 48159 invoked by uid 500); 22 Nov 2013 13:24:36 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 48077 invoked by uid 500); 22 Nov 2013 13:24:35 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 48064 invoked by uid 99); 22 Nov 2013 13:24:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 13:24:35 +0000 Date: Fri, 22 Nov 2013 13:24:35 +0000 (UTC) From: "vakhtang koroghlishvili (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (BEANUTILS-453) there was no why, to get value from the map, which have the key type of enum MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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:22 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 (sometimes we can't change that structure)? We should not implement that issue because map should use string key? I think , bin utils should have the solution of that problem (may be that is not very fast, but anyway it solves the problem). 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 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? I think , bin utils should have the solution of that problem (may be that is not very fast, but anyway it solves the problem) > 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)