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

[classlib][luni] Float parse causes OutOfMemoryException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M4
    • 5.0M11
    • Classlib
    • None

    Description

      The following code causes an out of memory exception on Harmony:

      new Float("2147483648")

      java.lang.OutOfMemoryError:
      at org.apache.harmony.luni.util.FloatingPointParser.parseFltImpl(FloatingPointParser.java)
      at org.apache.harmony.luni.util.FloatingPointParser.parseFloat(FloatingPointParser.java:310)
      at java.lang.Float.parseFloat(Float.java:341)
      at java.lang.Float.<init>(Float.java:129)
      at FloatTest.main(FloatTest.java:5)

      but passes on the RI.

      Attachments

        Activity

          People

            tellison Tim Ellison
            tellison Tim Ellison
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: