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] Created: (HARMONY-6335) [classlib] [text] NumberFormat incorrectly parses numbers containing spaces
Date Fri, 04 Sep 2009 14:52:57 GMT
[classlib] [text] NumberFormat incorrectly parses numbers containing spaces

                 Key: HARMONY-6335
                 URL: https://issues.apache.org/jira/browse/HARMONY-6335
             Project: Harmony
          Issue Type: Sub-task
          Components: Classlib
    Affects Versions: 5.0M11
         Environment: Harmony M11
            Reporter: Tim Ellison

import java.text.NumberFormat;
import java.text.ParseException;
import java.util.Locale;

import junit.framework.TestCase;

public class ParseTest extends TestCase {

    public void testNumberParser() throws ParseException {

        NumberFormat f = NumberFormat.getInstance(Locale.US);
        Number c = f.parse("1 2");
        assertEquals(1, c.intValue());


On the RI this passes, whereas on Harmony it fails with:
junit.framework.AssertionFailedError: expected:<1> but was:<12>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message