Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
java.lang.StringBuilder.replace(start,end, str) should replace the substring starting at param start and ending at param end -1 with the str parameter, but the Harmony's implementation's behavior is not compliant with spec and RI. The following test case reproduce the bug:
public void test_replace()
{ StringBuilder buffer = new StringBuilder("1234567"); buffer.replace(2, 6, "XXX"); assertEquals("12XXX7",buffer.toString()); }RI(Sun JDK 1.5.0_06) passed
Harmony failed