Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-747

java.lang.Doulbe.parseDouble(String) does not support Hex number

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None

      Description

      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

        Attachments

        1. lunipatch.txt
          18 kB
          Sian January
        2. patch_III.diff
          1 kB
          Leo Li
        3. patch_partII.diff
          4 kB
          Leo Li
        4. patch.diff
          40 kB
          Leo Li
        5. patch.diff
          4 kB
          Leo Li
        6. patch.diff
          6 kB
          Leo Li
        7. patchV.diff
          41 kB
          Leo Li

          Activity

            People

            • Assignee:
              paulex Paulex Yang
              Reporter:
              richard_liang Richard Liang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: