harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "juan wu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6410) [classlib][luni] a bug found in java.util.TimeZone#getDSTSavings()and #getDisplayName(daylight,style,locale)
Date Mon, 21 Dec 2009 07:02:18 GMT
[classlib][luni] a bug found in java.util.TimeZone#getDSTSavings()and #getDisplayName(daylight,style,locale)

                 Key: HARMONY-6410
                 URL: https://issues.apache.org/jira/browse/HARMONY-6410
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: juan wu

When running the testcase:org.apache.harmony.luni.tests.java.util.TimeZoneTest#test_getDSTSavings(),
on sun's jdk
        TimeZone st1 = TimeZone.getTimeZone("EST");
        assertEquals("T1A. Incorrect daylight savings returned", ONE_HOUR, st1
this assertion failed, expect 36000, actually return 0.

and another testcase:org.apache.harmony.luni.tests.java.util.TimeZoneTest#test_getDisplayNameZILjava_util_Locale(),
on sun's jdk
        TimeZone timezone = TimeZone.getTimeZone("Asia/Shanghai");
                timezone.getDisplayName(false, TimeZone.SHORT, Locale.CHINA));
this assertion failed, expected was "格林尼治标准时间+0800" but actually return "CST".

while both testcases succeded in hamony's jdk.

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

View raw message