harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1081) [classlib][text] ChoiceFormat.format(double, StringBuffer, FieldPosition) throws unexpected ArrayIndexOutOfBoundsException
Date Mon, 04 Sep 2006 08:57:29 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1081?page=all ]

Paulex Yang closed HARMONY-1081.
--------------------------------


Verified by Denis.

> [classlib][text] ChoiceFormat.format(double, StringBuffer, FieldPosition) throws unexpected
ArrayIndexOutOfBoundsException
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1081
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1081
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Paulex Yang
>         Attachments: 1081-ChoiceFormat(2).patch, 1081-ChoiceFormat.patch, 1081-ChoiceFormatTest(2).patch,
1081-ChoiceFormatTest.patch
>
>
> Test ----------------------------------------------------------------
> import java.text.*;
> public class bug9410 {
>     public static void main(String[] args) {
>         try {
>                 ChoiceFormat fr = new ChoiceFormat("|");
>                 StringBuffer tmp = new StringBuffer();
>                 FieldPosition pos = new FieldPosition(6);
>                 StringBuffer buf = fr.format(1, tmp, pos);
>                 System.out.println("buf.length=" + buf.length());
>             } catch (Exception e) {
>                 e.printStackTrace();
>             }
>     }
> }
> Output -----------------------------------------------------------------------------
> RI
> buf.length=0
> Harmony
> java.lang.ArrayIndexOutOfBoundsException
> 	at java.text.ChoiceFormat.format(ChoiceFormat.java:211)
> 	at java.text.ChoiceFormat.format(ChoiceFormat.java:228)
> 	at bug9410.main(bug9410.java:10)

-- 
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