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

    [ https://issues.apache.org/jira/browse/HARMONY-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751491#action_12751491
] 

Tim Ellison commented on HARMONY-6335:
--------------------------------------

Raised with ICU as  http://bugs.icu-project.org/trac/ticket/7128

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


Mime
View raw message