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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • 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. patchV.diff
          41 kB
          Leo Li
        2. patch.diff
          6 kB
          Leo Li
        3. patch.diff
          4 kB
          Leo Li
        4. patch.diff
          40 kB
          Leo Li
        5. patch_partII.diff
          4 kB
          Leo Li
        6. patch_III.diff
          1 kB
          Leo Li
        7. lunipatch.txt
          18 kB
          Sian January

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: