Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 43521 invoked from network); 30 Sep 2010 09:38:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Sep 2010 09:38:58 -0000 Received: (qmail 71625 invoked by uid 500); 30 Sep 2010 09:38:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 71521 invoked by uid 500); 30 Sep 2010 09:38:56 -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 71514 invoked by uid 99); 30 Sep 2010 09:38:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 09:38:55 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 09:38:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8U9cXdi022631 for ; Thu, 30 Sep 2010 09:38:33 GMT Message-ID: <13057225.474971285839513334.JavaMail.jira@thor> Date: Thu, 30 Sep 2010 05:38:33 -0400 (EDT) From: "Oliver Deakin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6525) [classlib][text] DecimalFormatTest tests fail In-Reply-To: <28918149.33231274996137528.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916421#action_12916421 ] Oliver Deakin commented on HARMONY-6525: ---------------------------------------- The last failure was already mentioned in HARMONY-878. I think it's a non-bug difference, and as far as I can see ICU follows the spec. I think the test should be changed to quote the second 0 i.e. "0\t'0'". With this change the getMaximumIntegerDigits test passes on Harmony and the RI. The FieldPosition failure looks like a genuine bug in ICU - I've raised a ticket: http://bugs.icu-project.org/trac/ticket/7997. > [classlib][text] DecimalFormatTest tests fail > --------------------------------------------- > > Key: HARMONY-6525 > URL: https://issues.apache.org/jira/browse/HARMONY-6525 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M14 > Reporter: Mark Hindess > > I see four failures and 1 error on windows/x86 and linux/x86: > DecimalFormatTest test_formatDLjava_lang_StringBufferLjava_text_FieldPosition > Test 0: incorrect end index for fieldjava.text.NumberFormat$Field(currency) > expected:<1> but was:<0> > at org.apache.harmony.text.tests.java.text.Support_Format.t_FormatWithField (Support_Format.java:55) > at org.apache.harmony.text.tests.java.text.Support_DecimalFormat.t_format_with_FieldPosition (Support_DecimalFormat.java:49) > at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_formatDLjava_lang_StringBufferLjava_text_FieldPosition (DecimalFormatTest.java:797) > DecimalFormatTest test_formatJLjava_lang_StringBufferLjava_text_FieldPosition > ##0.0E0: 123 expected:<12[3]E0> but was:<12[0]E0> > at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_formatJLjava_lang_StringBufferLjava_text_FieldPosition (DecimalFormatTest.java:1052) > DecimalFormatTest test_formatToCharacterIteratorLjava_lang_Object > Test 1: Format returned incorrect CharacterIterator for 350.76 > at org.apache.harmony.text.tests.java.text.Support_Format.t_Format (Support_Format.java:63) > at org.apache.harmony.text.tests.java.text.Support_DecimalFormat.t_formatToCharacterIterator (Support_DecimalFormat.java:140) > at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_formatToCharacterIteratorLjava_lang_Object (DecimalFormatTest.java:1112) > DecimalFormatTest test_parseLjava_lang_StringLjava_text_ParsePosition > Wrong result type multiplier 100: 9.223372036854776E16 > at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLjava_lang_StringLjava_text_ParsePosition (DecimalFormatTest.java:1331) > DecimalFormatTest test_getMaximumIntegerDigits > Error Unquoted special character '0' in pattern "0 0" > java.lang.IllegalArgumentException: Unquoted special character '0' in pattern "0 0" > at com.ibm.icu.text.DecimalFormat.patternError(DecimalFormat.java:4967) > at com.ibm.icu.text.DecimalFormat.applyPatternWithoutExpandAffix (DecimalFormat.java:4682) > at com.ibm.icu.text.DecimalFormat.createFromPatternAndSymbols (DecimalFormat.java:736) > at com.ibm.icu.text.DecimalFormat.(DecimalFormat.java:729) > at java.text.DecimalFormat.(DecimalFormat.java:588) > at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_getMaximumIntegerDigits (DecimalFormatTest.java:424) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.