This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] java.io.File fixes and String.substring() optimization


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> The former fix also prompted me to check if String.substring()
Bryce> would do the right thing if it was called with (0, length) - it
Bryce> should probably return itself in this situation (the spec says
Bryce> somewhere that strings with equivalent content can and should
Bryce> be the same object, right?), so I patched that too.

Do you have a reference for this?

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]