I have just retested this on my box, using the joda-time-1.5.1-src.zip 
and all is fine. Have you got any unusal time zone rule files?

Stephen


Paulo Neves wrote:
> Hi,
> 
> When I try to build joda-time 1.5.1 I obtain the following error (I try 
> with jdk 1.5 and 1.6):
> 
> compile.zoneinfo:
>      [java] Exception in thread "main" java.lang.ArithmeticException: 
> Adding time zone offset caused overflow
>      [java]     at 
> org.joda.time.chrono.ZonedChronology$ZonedDurationField.getOffsetToAdd(ZonedChronology.java:348)
>      [java]     at 
> org.joda.time.chrono.ZonedChronology$ZonedDurationField.getDifference(ZonedChronology.java:330)
>      [java]     at 
> org.joda.time.chrono.BaseChronology.get(BaseChronology.java:260)
>      [java]     at org.joda.time.base.BasePeriod.<init>(BasePeriod.java:100)
>      [java]     at org.joda.time.Period.<init>(Period.java:438)
>      [java]     at 
> org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone.create(DateTimeZoneBuilder.java:1432)
>      [java]     at 
> org.joda.time.tz.DateTimeZoneBuilder.toDateTimeZone(DateTimeZoneBuilder.java:395)
>      [java]     at 
> org.joda.time.tz.ZoneInfoCompiler.compile(ZoneInfoCompiler.java:374)
>      [java]     at 
> org.joda.time.tz.ZoneInfoCompiler.main(ZoneInfoCompiler.java:116)
> 
> 
> With joda-time 1.4 I hadn't this.
> 
> what could be? And I can I  resolve ?
> 
> Greetings,
> Paulo
> 
> ------------------------------------------------------------------------
> Abra sua conta no Yahoo! Mail 
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.mail.yahoo.com/>, 
> o único sem limite de espaço para armazenamento!
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: 
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to