Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 25908 invoked from network); 2 Oct 2004 01:40:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Oct 2004 01:40:39 -0000 Received: (qmail 13740 invoked by uid 500); 2 Oct 2004 01:40:35 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 13647 invoked by uid 500); 2 Oct 2004 01:40:34 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 13528 invoked by uid 99); 2 Oct 2004 01:40:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of flamefew@gmail.com designates 64.233.170.204 as permitted sender) Received: from [64.233.170.204] (HELO mproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 01 Oct 2004 18:40:33 -0700 Received: by mproxy.gmail.com with SMTP id 77so1206825rnl for ; Fri, 01 Oct 2004 18:40:31 -0700 (PDT) Received: by 10.38.77.44 with SMTP id z44mr5106135rna; Fri, 01 Oct 2004 18:40:31 -0700 (PDT) Received: by 10.38.164.33 with HTTP; Fri, 1 Oct 2004 18:40:31 -0700 (PDT) Message-ID: <31cc373604100118401a82438b@mail.gmail.com> Date: Fri, 1 Oct 2004 21:40:31 -0400 From: Henri Yandell Reply-To: Henri Yandell To: Jakarta Commons Developers List Subject: Re: [lang] DurationFormat In-Reply-To: <2B64219028BBFF48B3CC957EF10B58FE24645C@ns1018.SSSI.seagull.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2B64219028BBFF48B3CC957EF10B58FE24645C@ns1018.SSSI.seagull.nl> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Switched to use setTime(new Date(long)) rather than setTimeInMillis(long). Good catch. Hen On Fri, 1 Oct 2004 18:03:45 -0400, Gary Gregory wrote: > Is anyone looking at this issue? I am sure we do not want to restrict > [lang] users to 1.4. > > Thanks, > Gary > > > > > -----Original Message----- > > From: Gary Gregory [mailto:ggregory@seagullsoftware.com] > > Sent: Thursday, September 30, 2004 09:45 > > To: Jakarta Commons Developers List; Henri Yandell > > Subject: RE: [lang] DurationFormat > > > > I just discovered that the compile error happens on 1.3.1_12 but not > on > > 1.4.2_05. > > > > This means that the code can compile if you use 1.4 but it will blow > up > > at runtime on 1.3: > > > > test.time: > > [echo] Running time package tests ... > > [java] ...F..............E.E............... > > [java] Time: 4.617 > > [java] There were 2 errors: > > [java] 1) > > > testISODurationFormat(org.apache.commons.lang.time.DurationFormatUtilsTe > > st)java.lang.IllegalAccessError: try to access method > > java.util.Calendar. > > setTimeInMillis(J)V from class > > org.apache.commons.lang.time.DurationFormatUtils > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtils.format(DurationFormatUt > > ils.java:261) > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtils.format(DurationFormatUt > > ils.java:134) > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtilsTest.testISODurationForm > > at(DurationFormatUtilsTest.java:160) > > [java] 2) > > > testFormat(org.apache.commons.lang.time.DurationFormatUtilsTest)java.lan > > g.IllegalAccessError: try to access method > > java.util.Calendar.setTimeInMi > > llis(J)V from class org.apache.commons.lang.time.DurationFormatUtils > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtils.format(DurationFormatUt > > ils.java:261) > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtils.format(DurationFormatUt > > ils.java:134) > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtils.format(DurationFormatUt > > ils.java:115) > > [java] at > > > org.apache.commons.lang.time.DurationFormatUtilsTest.testFormat(Duration > > FormatUtilsTest.java:198) > > [java] There was 1 failure: > > [java] 1) > > > testRound(org.apache.commons.lang.time.DateUtilsTest)junit.framework.Ass > > ertionFailedError: round MET date across DST change-over expected: > Ma > > r 30 03:00:00 IRST 2003> but was: > > [java] at > > > org.apache.commons.lang.time.DateUtilsTest.testRound(DateUtilsTest.java: > > 363) > > > > [java] FAILURES!!! > > [java] Tests run: 33, Failures: 1, Errors: 2 > > > > > > BUILD FAILED > > > > > -----Original Message----- > > > From: Gary Gregory [mailto:ggregory@seagullsoftware.com] > > > Sent: Thursday, September 30, 2004 09:25 > > > To: Jakarta Commons Developers List; Henri Yandell > > > Subject: RE: [lang] DurationFormat > > > > > > Hello, > > > > > > Compile errors due to an incomplete commit? > > > > > > From Ant: > > > > > > compile: > > > [javac] Compiling 73 source files to > > > C:\cvs-store\apache.org\jakarta\commons\lang\target\classes > > > [javac] > > > > > > C:\cvs-store\apache.org\jakarta\commons\lang\src\java\org\apache\commons > > > \lang\time\DurationFormatUtils.java:261: setTimeInMillis(long) has > > > protected > > > access in java.util.Calendar > > > [javac] start.setTimeInMillis(startMillis); > > > [javac] ^ > > > [javac] > > > > > > C:\cvs-store\apache.org\jakarta\commons\lang\src\java\org\apache\commons > > > \lang\time\DurationFormatUtils.java:263: setTimeInMillis(long) has > > > protected > > > access in java.util.Calendar > > > [javac] end.setTimeInMillis(endMillis); > > > [javac] ^ > > > [javac] 2 errors > > > > > > BUILD FAILED > > > > > > From Eclipse: > > > > > > Severity Description Resource In Folder Location > > > Creation Time > > > 2 The method setTimeInMillis(long) from the type Calendar is not > > > visible DurationFormatUtils.java Apache Jakarta > > > Commons/lang/src/java/org/apache/commons/lang/time line 261 > > > September 27, 2004 10:28:52 AM > > > 2 The method setTimeInMillis(long) from the type Calendar is not > > > visible DurationFormatUtils.java Apache Jakarta > > > Commons/lang/src/java/org/apache/commons/lang/time line 263 > > > September 27, 2004 10:28:52 AM > > > > > > Gary > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org