Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8335668

NumberFormat integer only parsing should throw exception for edge case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • None
    • b07
    • generic
    • generic

      JDK-8333755 fixed integer only parsing when the value has a suffix.

      However, now a value with no integer portion, such as (".55") parsed (in integer only mode) returns 0 instead of throwing a ParseException, which was the previous behavior. We need to return to the original behavior, to avoid any compatibility concerns.

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: