harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6188) [classlib][text] Fix the failure for SimpleDateFormatTest.test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition
Date Wed, 29 Apr 2009 15:14:30 GMT
[classlib][text] Fix the failure for SimpleDateFormatTest.test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-6188
                 URL: https://issues.apache.org/jira/browse/HARMONY-6188
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M9
            Reporter: Jim Yu
             Fix For: 5.0M10


Currently there are four testcase failures for SimpleDateFormatTest which is in the exclude
list. The testcase test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition
is one of them. I investigated on this issue and found the failure was mainly caused by the
FieldPosition instance was unable to retrieve the correct begin and end index after format
method due to ICU requires a DateFormat.Field instance of its own. And other errors were caused
by the behavior difference between ICU and  RI. I've got a fix for this failure. The changes
of this fix are as following:
1. Update the format method to support FieldPosition index update after formatting.
2. Update the testcase of SimpleDateFormatTest to follow the ICU behavior.
3. Update the testcase in support module to follow the ICU behavior.
Can anybody try this patch?

-- 
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