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=8298>. 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=8298 default split of empty string should return empty list [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From [EMAIL PROTECTED] 2002-04-19 19:11 ------- Current behavior is intended, but deviates from Perl. We're debating the appropriate action on oro-dev. Will probably make Perl5Util match Perl's "leading empty fields are preserved, and empty trailing one are deleted." rule which appears to take precedence over "If the PATTERN doesn't match at all, it returns the original string." However, we will probably leave org.apache.oro.text.regex.Util.split() alone and add documentation explaining the difference in behavior. Util.split() is to be self-consistent and predictable with no special cases; Perl5Util.split() is to be compatible with Perl's split. Even though this was a simple test case, please include working example code in future bug reports (e.g., there is no List.length()) to make our jobs easier. We all volunteer our time and anything that reduces the time we have to spend diagnosing a problem is greatly appreciated and improves the chances of a speedy resolution. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
