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

Allow NumberFormat strict parsing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • None
    • b19
    • generic
    • generic

      Parsing in NumberFormat is by default lenient. There exists no options for strict parsing. Generally, parsing is utilized to verify input and is ideally strict for most use cases.

      Introducing a setLenient() method should allow for strict parsing of localized numbers in a compatibility friendly manner.

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

              Created:
              Updated:
              Resolved: