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

[classlib] [text] java.text.Format#parseObject(String) does not behave as expected

    XMLWordPrintableJSON

Details

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

    Description

      java.text.Format#parseObject(String) does not behave as expected.

      AIUI, parseObject(String) is supposed to succeed even if the full string is not parsed successfully, i.e. so long as some part of the string has been parsed, an object should be returned.

      However the current implementation checks for errorIndex <> -1, which seems wrong
      The Javadoc for parseObject(String, ParsePosition) does not specify that errorIndex must be -1 for a successful parse, only that it must be set for a failed parse.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: