Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 5772 invoked from network); 24 Aug 2010 09:08:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 09:08:59 -0000 Received: (qmail 47438 invoked by uid 500); 24 Aug 2010 09:08:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 47339 invoked by uid 500); 24 Aug 2010 09:08: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 47332 invoked by uid 99); 24 Aug 2010 09:08:56 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 09:08: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; Tue, 24 Aug 2010 09:08:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7O98GCU018054 for ; Tue, 24 Aug 2010 09:08:16 GMT Message-ID: <30879115.526961282640896195.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 05:08:16 -0400 (EDT) From: "Jonathan Lu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6634) org.apache.harmony.text.tests.java.text.DateFormatTest.test_getDateTimeInstanceII fails on windows In-Reply-To: <7807836.526731282640179134.JavaMail.jira@thor> 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-6634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Lu updated HARMONY-6634: --------------------------------- Environment: windows xp sp3, 32bit, Simplified Chinese (was: windows xp sp3, 32bit) > org.apache.harmony.text.tests.java.text.DateFormatTest.test_getDateTimeInstanceII fails on windows > -------------------------------------------------------------------------------------------------- > > Key: HARMONY-6634 > URL: https://issues.apache.org/jira/browse/HARMONY-6634 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: windows xp sp3, 32bit, Simplified Chinese > Reporter: Jonathan Lu > Priority: Minor > > The reason is from java.text.DateFormat: > public final static DateFormat getDateTimeInstance(int dateStyle, > int timeStyle, Locale locale) { > checkTimeStyle(timeStyle); > checkDateStyle(dateStyle); > com.ibm.icu.text.DateFormat icuFormat = com.ibm.icu.text.DateFormat.getDateTimeInstance(dateStyle, timeStyle, locale); > return new SimpleDateFormat(locale, (com.ibm.icu.text.SimpleDateFormat)icuFormat); > } > If the value of dateStyle is DateFormat.LONG and the value of timeStyle is DateFormat.SHORT, the toPattern() method of SimpleDateFormat will lose one space character (' ') between the date part and the time part. But RI will pass the test by giving correct output. > The stack trace is here: > junit.framework.AssertionFailedError: Wrong default > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at org.apache.harmony.text.tests.java.text.DateFormatTest.testDateTime(DateFormatTest.java:208) > at org.apache.harmony.text.tests.java.text.DateFormatTest.test_getDateTimeInstanceII(DateFormatTest.java:230) > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > at java.lang.reflect.Method.invoke(Method.java:316) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) > at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:466) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.