You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/07/29 09:34:09 UTC
DO NOT REPLY [Bug 21952] New: -
[lang] Improved tests, javadoc for CharSetUtils, StringEscapeUtils
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21952>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21952
[lang] Improved tests, javadoc for CharSetUtils, StringEscapeUtils
Summary: [lang] Improved tests, javadoc for CharSetUtils,
StringEscapeUtils
Product: Commons
Version: Nightly Builds
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Lang
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: phil@steitz.com
The attached patch improves test coverage for CharSetUtils and StringEscapeUtils
(mostly "" and null-related) and fixes a minor javadoc error in
CharSetUtils.translate.
Currently, charSetUtils.translate throws ArrayOutOfBoundsException if the repl
string has positive length, but the with string is empty. The tests and javadoc
change in the patch just document this behavior. It might make sense to either
throw something else in this situation or to modify the behavior.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org