Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 47496 invoked from network); 26 Nov 2007 17:18:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 17:18:22 -0000 Received: (qmail 41347 invoked by uid 500); 26 Nov 2007 17:18:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 41331 invoked by uid 500); 26 Nov 2007 17:18:01 -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 41319 invoked by uid 99); 26 Nov 2007 17:18:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 09:18:01 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 17:18:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0692671420E for ; Mon, 26 Nov 2007 09:17:43 -0800 (PST) Message-ID: <21111140.1196097463017.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 09:17:43 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-5195) [classlib][luni] java.util.Calendar doesn't recalculate fields after timeZone changing. In-Reply-To: <5007787.1196095123313.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-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison reassigned HARMONY-5195: ------------------------------------ Assignee: Tim Ellison > [classlib][luni] java.util.Calendar doesn't recalculate fields after timeZone changing. > --------------------------------------------------------------------------------------- > > Key: HARMONY-5195 > URL: https://issues.apache.org/jira/browse/HARMONY-5195 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Sergey Kuksenko > Assignee: Tim Ellison > Priority: Minor > Attachments: calendar.patch, Greg_calendar_test.patch > > > java.util.Calendar doesn't recalculate fields after timeZone changing. > For example: > Calendar c1 = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 34, 16); > c1.setTimeZone(new SimpleTimeZone(60000, "ONE MINUTE")); > String res = c1.get(Calendar.HOUR)+":"+c1.get(Calendar.MINUTE)+":"+c1.get(Calendar.SECOND); > After that Harmony returns "3:34:16" instead of "11:35:16" as RI does. > Patch for unit teste for regression testing is done. > Patch for the issue is done (also the patch slightly improve performance when calendar already parsed time). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.