DO NOT REPLY [Bug 8298] New: - default split of empty string should return empty list

[email protected]
Newsgroups gmane.comp.jakarta.oro.devel
Message-ID <[email protected]>
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

           Summary: default split of empty string should return empty list
           Product: ORO
           Version: 2.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


List tokenList = new ArrayList();
new Perl5Util.split(tokenList,"");
if( 0 != 
tokenList.length())
   System.out.println("aiee!  this doesn't work like any perl I 
know!");


The javadoc on this is quite clear, and states that it should match the 
functionality of split(/\s+/,"") , which returns an empty list on all of the versions of perl I 
could find back to 5.003
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.