harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cornwall (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5657) [classlib][pack200] Some doubles decode incorrectly
Date Wed, 26 Mar 2008 19:57:24 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Cornwall updated HARMONY-5657:
-------------------------------------

    Attachment: DoubleDecodingIssue.pack.gz
                DoubleDecodingIssue.jar

Attached are the original DoubleDecodingIssue.jar (includes source) and the associated pack200
file (generated with default encoding).

Under Sun, I get the following doubles:
  /* #59 */ double = 4.9E-324
  /* #61 */ double = 2.5862E-5
  /* #63 */ double = 0.016713
  /* #65 */ double = 0.017453292519943295
  /* #67 */ double = 0.5
  /* #69 */ double = 3.141592653589793
  /* #71 */ double = 3.819718634205488
  /* #73 */ double = 4.87650757829735
  /* #75 */ double = 4.935239984568769
  /* #77 */ double = 6.283185307179586
  /* #79 */ double = 6.697374558
  /* #81 */ double = 23.93446960027
  /* #83 */ double = 24.0
  /* #85 */ double = 24.065709816
  /* #87 */ double = 27.32166
  /* #89 */ double = 29.530588853
  /* #91 */ double = 57.29577951308232
  /* #93 */ double = 365.242191
  /* #95 */ double = 365.25636
  /* #97 */ double = 1233.5
  /* #99 */ double = 2400.051336
  /* #101 */ double = 36525.0
  /* #103 */ double = 2447891.5
  /* #105 */ double = 2451545.0
  /* #107 */ double = 3600000.0

Under our implementation, I get the following:
  /* #53 */ double = 0.016713
  /* #55 */ double = 0.017453292519943295
  /* #57 */ double = 1233.5009649367566
  /* #59 */ double = 2.5862E-5
  /* #61 */ double = 23.93446941861776
  /* #63 */ double = 24.06570963434776
  /* #65 */ double = 2400.0512894970266
  /* #67 */ double = 2447891.4761904776
  /* #69 */ double = 2451544.9761904776
  /* #71 */ double = 27.32165981834776
  /* #73 */ double = 29.53058867134776
  /* #75 */ double = 3.141592630883263
  /* #77 */ double = 3.819718611498958
  /* #79 */ double = 365.2563541871283
  /* #81 */ double = 36525.03087797621
  /* #83 */ double = 4.87650753288429
  /* #85 */ double = 4.935239939155709
  /* #87 */ double = 4.9E-324
  /* #89 */ double = 57.29577878647336
  /* #91 */ double = 6.283185261766526
  /* #93 */ double = 6.69737451258694
  /* #95 */ double = NaN

i.e., the values are slightly different for some, and vastly different for others (NaN). In
addition, there are 22 unique values from our code, and 25 unique values from Sun's code.

> [classlib][pack200] Some doubles decode incorrectly
> ---------------------------------------------------
>
>                 Key: HARMONY-5657
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5657
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All pack200
>            Reporter: Andrew Cornwall
>         Attachments: DoubleDecodingIssue.jar, DoubleDecodingIssue.pack.gz
>
>
> There are some cases where doubles aren't decoding correctly even after applying HARMONY-5630.
I'll try to come up with a test case that demonstrates the problem today.

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