hg: jdk7/tl/jdk: 6960898: Regression due to src/share/classes/java/lang/ProcessBuilder.java changes

2010-06-13 Thread kelly . ohair
Changeset: 5a61a4f65c9c Author:martin Date: 2010-06-13 17:19 -0700 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/5a61a4f65c9c 6960898: Regression due to src/share/classes/java/lang/ProcessBuilder.java changes Summary: Use Null{In,Out}putStream.INSTANCE as with Linux code Reviewed

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

2010-06-13 Thread Ulf Zibis
On the other hand: " ".token.split(" "); // Bug: should return { "" } for token " " should return: { "" } (=new String[1]) but actually returns { } (=new String[0]) . -Ulf Am 13.06.2010 14:39, schrieb Ulf Zibis: Correction: 0 items (=new String[0]) Actually it returns new String[1] wi

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

2010-06-13 Thread Ulf Zibis
Correction: 0 items (=new String[0]) Actually it returns new String[1] with one zero-length String. -Ulf Am 13.06.2010 14:32, schrieb Ulf Zibis: 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 c

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

2010-06-13 Thread Ulf Zibis
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