String.split() should return 0 items if input is empty

Ulf Zibis Ulf.Zibis at gmx.de
Sun Jun 13 05:32:30 PDT 2010


Shouldn't String.split("x") return 0 items (=null) if input is empty 
(=.length()==0),
as there is neither a matching pattern "x", nor some trailing chars and 
trailing empty strings should be discarded?

Thanks,

-Ulf




More information about the core-libs-dev mailing list