harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6334) java.text.Format#parseObject(String) does not behave as expected
Date Thu, 03 Sep 2009 13:22:57 GMT
java.text.Format#parseObject(String) does not behave as expected
----------------------------------------------------------------

                 Key: HARMONY-6334
                 URL: https://issues.apache.org/jira/browse/HARMONY-6334
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M11
            Reporter: Sebb


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message