Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 39960 invoked from network); 22 Sep 2010 16:47:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 16:47:58 -0000 Received: (qmail 69623 invoked by uid 500); 22 Sep 2010 16:47:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 69526 invoked by uid 500); 22 Sep 2010 16:47:57 -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 69518 invoked by uid 99); 22 Sep 2010 16:47:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 16:47:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 16:47:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8MGlXqD013328 for ; Wed, 22 Sep 2010 16:47:33 GMT Message-ID: <20994614.347071285174053580.JavaMail.jira@thor> Date: Wed, 22 Sep 2010 12:47:33 -0400 (EDT) From: "Michael Osipov (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (DBUTILS-72) BasicRowProcessor's CaseInsentitiveHashMap does not work with reflection In-Reply-To: <25561718.342081285163673877.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DBUTILS-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913657#action_12913657 ] Michael Osipov commented on DBUTILS-72: --------------------------------------- Why do you think so? I have wrapped this map into a CaseInsensitiveMap of Commons Collections and it worked perfectly. In my opinion, it is the private modifier. The taglib should set privateClass.setAccessable(true) but this is a dirty workaround. > BasicRowProcessor's CaseInsentitiveHashMap does not work with reflection > ------------------------------------------------------------------------ > > Key: DBUTILS-72 > URL: https://issues.apache.org/jira/browse/DBUTILS-72 > Project: Commons DbUtils > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Michael Osipov > Priority: Minor > > The map has been declared class private, this causes problems when someone tries to invoke the get method via reflection. I do use the results in the Jakarta Input Taglib which invokes the get via reflection and it fails with illegalaccessexception. > The class has to be made public or decoupled from the row processor. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.