This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java.util.Timer not handling negative System.currentTimeMillis()


>>>>> "Martin" == Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:

Martin> I know this is an obscure problem, but is there is requirement
Martin> that we are only "allowed" to run gcj on targets with clocks >
Martin> 1970.

The portability code isn't fully spec'd out to this level.  The code
is the only guide.

Martin> For now I will just make sure the time is not less than 1970
Martin> and larger than some other limit overflowing the long.

Martin> The problem arises because my target's RTC comes with an undefinded 
Martin> initial time - hence anything is possible :-)

Yeah, you should probably initialize this sometime before initializing
libgcj.  It seems to me that this randomness would preclude a workable
libgcj patch... ?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]