Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 70058 invoked from network); 29 Apr 2009 15:24:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 15:24:52 -0000 Received: (qmail 35051 invoked by uid 500); 29 Apr 2009 15:24:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 35019 invoked by uid 500); 29 Apr 2009 15:24:51 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 34931 invoked by uid 99); 29 Apr 2009 15:24:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 15:24:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 15:24:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BE0E234C045 for ; Wed, 29 Apr 2009 08:24:30 -0700 (PDT) Message-ID: <2098481113.1241018670375.JavaMail.jira@brutus> Date: Wed, 29 Apr 2009 08:24:30 -0700 (PDT) From: "Jim Yu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6188) [classlib][text] Fix the failure for SimpleDateFormatTest.test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition In-Reply-To: <1524722954.1241018070677.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Yu updated HARMONY-6188: ---------------------------- Attachment: HARMONY-6188-support.diff > [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 > > Attachments: HARMONY-6188-support.diff, HARMONY-6188-text.diff > > Original Estimate: 48h > Remaining Estimate: 48h > > 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.