commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32748] - [beanutils]special characters in mapped property keys are parsed incorrectly
Date Sat, 15 Oct 2005 17:41:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32748>.
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:41 -------
(In reply to comment #3)
> Line 4: BeanUtils.setProperty(myBean, "myMapBackedProp
> (foo\.bar\(baz)", "myValue");

I suppose the above line should read as follows, since the backslash needs to 
appear twice in a Java string literal:

Line 4: BeanUtils.setProperty(myBean, "myMapBackedProp
(foo\\.bar\\(baz)", "myValue");

And one more escape sequence nees to be added:
"\\" for "\"

Looks like things would be easier if the some character (pipe?) other than 
backslash is chosen as the escape character for map-backed property keys.

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


Mime
View raw message