harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman S. Bushmanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4387) [buildtest][func] DecimalFormatTest text test is incorrect
Date Fri, 06 Jul 2007 16:10:04 GMT
[buildtest][func] DecimalFormatTest text test is incorrect
----------------------------------------------------------

                 Key: HARMONY-4387
                 URL: https://issues.apache.org/jira/browse/HARMONY-4387
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
            Reporter: Roman S. Bushmanov


The test functional/org/apache/harmony/test/func/api/java/text/DecimalFormat/DecimalFormatTest.xml
 fails with the following output.

22:55:46| DecimalFormat.format(double) returns incorrect value
Expected:'B@C'@DH'AED'BDG'HFH'BH?'
Returned:'B@C'@DH'AED'BDG'HFH'C??'

The problem here that the the test expects the wrong value to be returned by DecimalFormat.format(double).
The right one is 'B@C'@DH'AED'BDG'HFH'C??'

The point is that RI has a bug in Double.toString(double) implementation. Thus for the double
which is exploited by the test, 3.141592653589794E17 RI implementation of this method returns
3.1415926535897939E17 while Harmony returns 3.141592653589794E17. The latter is correct  string.

Current test expects the same value as returned by RI.

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