Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EBCA094E5 for ; Wed, 16 Nov 2011 07:21:25 +0000 (UTC) Received: (qmail 60664 invoked by uid 500); 16 Nov 2011 07:21:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 60239 invoked by uid 500); 16 Nov 2011 07:21:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 59710 invoked by uid 99); 16 Nov 2011 07:21:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 07:21:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 07:21:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1E61187FEF for ; Wed, 16 Nov 2011 07:20:52 +0000 (UTC) Date: Wed, 16 Nov 2011 07:20:52 +0000 (UTC) From: "Henri Yandell (Issue Comment Edited) (JIRA)" To: issues@commons.apache.org Message-ID: <1436188252.34190.1321428052125.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1672306667.45275.1316507649078.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (LANG-755) DateFormatUtils.format manipulates Calendar behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-755?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131510= 68#comment-13151068 ]=20 Henri Yandell edited comment on LANG-755 at 11/16/11 7:20 AM: -------------------------------------------------------------- Confirmed. It appears to be a JDK bug, calling cal.get(Calendar.\*) undoes the cal.cle= ar(Calendar.\*) call.=20 =20 was (Author: bayard): Confirmed. It appears to be a JDK bug, calling cal.get(Calendar.*) undoes the cal.clea= r(Calendar.*) call.=20 =20 > DateFormatUtils.format manipulates Calendar behaviour > ----------------------------------------------------- > > Key: LANG-755 > URL: https://issues.apache.org/jira/browse/LANG-755 > Project: Commons Lang > Issue Type: Bug > Components: lang.time.* > Reporter: hans-j=C3=BCrgen kozik > Priority: Minor > > {code} > @Test > public void testClearCalendar() { > Calendar cal =3D Calendar.getInstance(); > cal.clear(Calendar.MINUTE); > System.out.println(cal.isSet(Calendar.MINUTE)); //false > System.out.println(DateFormatUtils.ISO_DATETIME_FORMAT.format(cal)); > System.out.println(cal.isSet(Calendar.MINUTE)); //true > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira