Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39453 invoked from network); 8 Apr 2008 14:28:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 14:28:18 -0000 Received: (qmail 84174 invoked by uid 500); 8 Apr 2008 14:28:11 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 84156 invoked by uid 500); 8 Apr 2008 14:28:11 -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 84135 invoked by uid 99); 8 Apr 2008 14:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 07:28:11 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 14:27:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52885234C0C8 for ; Tue, 8 Apr 2008 07:25:25 -0700 (PDT) Message-ID: <1714521833.1207664725337.JavaMail.jira@brutus> Date: Tue, 8 Apr 2008 07:25:25 -0700 (PDT) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5459) [classlib][util] default TimeZone ignores raw offset after switch to ICU. In-Reply-To: <512930.1202229608624.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pavel Pervov updated HARMONY-5459: ---------------------------------- Environment: Linux x86-64 (was: All) Changed environment. > [classlib][util] default TimeZone ignores raw offset after switch to ICU. > ------------------------------------------------------------------------- > > Key: HARMONY-5459 > URL: https://issues.apache.org/jira/browse/HARMONY-5459 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Linux x86-64 > Reporter: Pavel Pervov > Assignee: Tony Wu > Fix For: 5.0M5 > > Attachments: H5459.patch > > > The following test fails on Harmony but passes on RI. > ------------------ > import java.util.TimeZone; > class TimeZoneTest { > public static void main(String[] args) { > TimeZone tz1 = (TimeZone)TimeZone.getDefault(); > System.out.println(tz1); > int fourHours = 4*60*60*1000; > tz1.setRawOffset(fourHours); > System.out.println(tz1); > if(tz1.getOffset(1, 2000, 01, 1, 7, 0) == fourHours) { > System.out.println("PASSED"); > } else { > System.out.println("FAILED: rawOffset is ignored"); > } > } > } > ------------------ > I'll attach simple patch to fix this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.