Hi!

Am Donnerstag, 15. Februar 2007 11:11 schrieb Adrian Sandor:
> Hi, I'm not using joda-time yet, but may start soon.
> Have you guys found a solution to the problem of timers getting confused by
> changes in the system time? All the timers and sleep/wait methods I tried
> have failed to work properly when I changed my computer's time. This is on
> linux, kernel 2.6.19, and Sun JDK 1.5.0_10
>
> Adrian

I had this problem too.

Fact is, that this is a problem of the JVM under linux. Therad.sleep()
does not return if the system time is set to a time in the past.
The solution for me was to use Object.wait() (on a simple Object())
instead of Therad.sleep() calls. wait() always returned.

I don't use any timer, but they will use Thread.sleep() I guess and so
have the same problem.

You will find many bug-reports on the sun homepage to that topic.

hth,
lukas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to