commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [lang] DurationFormat
Date Sat, 02 Oct 2004 01:40:31 GMT
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
<ggregory@seagullsoftware.com> 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:<Sun
> > Ma
> > r 30 03:00:00 IRST 2003> but was:<Sun Mar 30 02:00:00 IRST 2003>
> >      [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


Mime
View raw message