harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharindu Mathew (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5897) [classlib][swing] Fixes a problem in SpinnerDataModelTest that occurs on specific Dates
Date Sat, 12 Jul 2008 07:36:31 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613056#action_12613056

Tharindu Mathew commented on HARMONY-5897:

I found out the reason for the problem. In the TimeZones.getTimeZones() method:

new SimpleTimeZone(6 * ONE_HOUR, "Asia/Colombo")

Asia/Colombo should be implemented as new SimpleTimeZone(5.5 * ONE_HOUR, "Asia/Colombo")

But it doesn't take a float value as an argument. I can't fix the float value issue cause
SimpleTimeZones uses com.ibm.icu.util classes to initialize time zone values which I cannot
access the source code of:

 public SimpleTimeZone(int offset, String name) {
        rawOffset = offset;
        icuTZ = com.ibm.icu.util.TimeZone.getTimeZone(name);
        if (icuTZ instanceof com.ibm.icu.util.SimpleTimeZone) {
            isSimple = true;
        useDaylight = icuTZ.useDaylightTime();

> [classlib][swing] Fixes a problem in SpinnerDataModelTest that occurs on specific Dates
> ---------------------------------------------------------------------------------------
>                 Key: HARMONY-5897
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5897
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Tharindu Mathew
>            Assignee: Alexei Zakharov
>         Attachments: testSpinnerDataModel.patch

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

View raw message