harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sian January (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-747) java.lang.Doulbe.parseDouble(String) does not support Hex number
Date Tue, 22 Aug 2006 15:39:15 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-747?page=all ]

Sian January updated HARMONY-747:
---------------------------------

    Attachment: lunipatch.txt

Double.valueOf(String), Float.parseFloat(String), Float.valueOf(String) and both Float and
Double's String constructors did not support the Hex representation either.  Possibly missing
because the requirement was new in Java 5?  

This patch provides the implementation and tests for both Float and Double. 

> java.lang.Doulbe.parseDouble(String) does not support Hex number
> ----------------------------------------------------------------
>
>                 Key: HARMONY-747
>                 URL: http://issues.apache.org/jira/browse/HARMONY-747
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Attachments: lunipatch.txt
>
>
> Hello,
> When implementing java.util.Scanner, I find that java.lang.Doulbe.parseDouble(String)
does not support Hex number. Could anyone have a look at this issue? Thanks a lot.
> The following test passes on RI, but fails on Harmony.
>     public void test_ParseDouble() {
>         String hexString = Double.toHexString(123);
>         assertEquals("0x1.ecp6", hexString);
>         
>         double d = Double.parseDouble(hexString);
>         assertEquals(123.0, d);
>     }
> Best regards,
> Richard

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