harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-348) java.lang.StringBuilder.replace does not get right result
Date Fri, 12 May 2006 12:15:08 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-348?page=all ]
     
Tim Ellison closed HARMONY-348:
-------------------------------


Verified by Paulex.


> java.lang.StringBuilder.replace does not get right result
> ---------------------------------------------------------
>
>          Key: HARMONY-348
>          URL: http://issues.apache.org/jira/browse/HARMONY-348
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: harmony-348.diff
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message