harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1081) [classlib][lang] ChoiceFormat.format(double, StringBuffer, FieldPosition) throws unexpected ArrayIndexOutOfBoundsException
Date Mon, 07 Aug 2006 13:41:13 GMT
[classlib][lang] 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
            Reporter: Denis Kishenko


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