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] Commented: (HARMONY-6410) [classlib][luni] a bug found in java.util.TimeZone#getDSTSavings()and #getDisplayName(daylight,style,locale)
Date Tue, 22 Dec 2009 08:50:29 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793552#action_12793552
] 

juan wu commented on HARMONY-6410:
----------------------------------

hi~
about the timezone info,I am not sure, following is the sun jdk version and harmony version
info:

jre version of sun's jdk
C:\>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)

harmony version
C:\trunk\deploy\jdk\jre\bin>java -version
Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software 

Foundation or its licensors,
as applicable.
java version "1.6.0"
Harmony Virtual Machine Element (jvmwi3270-20090731_39920)
J9 (2.6)
IBM J9 2.6 Windows XP x86-32  (JIT enabled, AOT enabled)
J9VM - 20090731_039920
JIT  - dev_20090710_1904
GC   - R26_head_20090731_1122_B39896
J9CL - plugin



> [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
>                 .getDSTSavings());
> 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");
>         assertEquals("\u683c\u6797\u5c3c\u6cbb\u6807\u51c6\u65f6\u95f4+0800",
>                 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.


Mime
View raw message