spicyfish / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

String::compareTo() does not work correctly for strings that have the same start but differ in length. #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you compare the following Strings:
String* s = new String("foo");
String* t = new String("foobar");

then s equals t, according to String::compareTo(). Ofcourse, t should be > s.

Original issue reported on code.google.com by coenbijlsma on 11 Aug 2009 at 7:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r307.

Original comment by coenbijlsma on 11 Aug 2009 at 8:00