NumberFormat integer only parsing should throw exception for edge case

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: