Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 56268 invoked from network); 15 Oct 2005 17:30:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Oct 2005 17:30:33 -0000 Received: (qmail 87957 invoked by uid 500); 15 Oct 2005 17:30:31 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 87551 invoked by uid 500); 15 Oct 2005 17:30:29 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 87539 invoked by uid 99); 15 Oct 2005 17:30:29 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2005 10:30:29 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 81C39514; Sat, 15 Oct 2005 19:30:08 +0200 (CEST) From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32748] - [beanutils]special characters in mapped property keys are parsed incorrectly X-Bugzilla-Reason: AssignedTo Message-Id: <20051015173008.81C39514@ajax.apache.org> Date: Sat, 15 Oct 2005 19:30:08 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32748 ------- Additional Comments From d2000m@hotmail.com 2005-10-15 19:30 ------- (In reply to comment #1) > I'm not sure I see any way around this. Do you have any ideas? The issue is a very important one, because many times developers have no control over the characters in the keys of map-backed propeties. A solution could be to enhance the expression syntax to recognize escape sequences inside the parenthesis representing map-backed property keys. Consider this example: Line 1: myBean.setMyMapBackedProp("foo).bar(baz", "myValue"); Line 2: myBean.getMyMapBackedProp("foo").setBar("baz", "myValue); Line 3: BeanUtils.setProperty(myBean, "myMapBackedProp(foo).bar (baz)", "myValue"); Line 3 would currently have the same effect as Line 2. What if we want to use BeanUtils to achieve the effect of Line 1 instead of the effect of Line 2? Suppose that BeanUtils expression syntax for map-backed property keys were enhanced slightly to recognize these escape sequences: "\(" for "(" "\." for "." "\)" for ")" Then we could use BeanUtils to achieve the effect of Line 1 as follows: Line 4: BeanUtils.setProperty(myBean, "myMapBackedProp (foo\.bar\(baz)", "myValue"); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org