Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: RE: RE: InstantDB: Dec 31, 2000 problem with IDB (versions 3.21 and 3.25)


Hey Peter and Luke,

The only thing that I have found is at the setLenient(false); like stated in
http://developer.java.sun.com/developer/bugParade/bugs/4398844.html.

I have tested the code example with 1996 (1996/4 = 499) and it works, but
just using 1999 will make the code fail (= bug in the Sun VM and not IDB).


Regrads,
Martin




-----Oprindelig meddelelse-----
Fra: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]På
vegne af Peter Hearty
Sendt: 8. januar 2001 08:36
Til: instantDB@enhydra.org
Emne: Re: RE: RE: InstantDB: Dec 31, 2000 problem with IDB (versions
3.21 and 3.25)


Luke

I was using the MS JVM. It happened straight away on JDK 1.2.2 and 1.3.
I've attached a modified version of example.java that shows the
sequence of calls that IDB makes in order to interpret the date:

Calendar c = Calendar.getInstance();
c.setLenient(false);
try {
	c.set (1945,11,25,0,0,0);
	c.set (Calendar.MILLISECOND, 0);
	java.util.Date retVal = c.getTime();
} catch (IllegalArgumentException e) {
	e.printStackTrace();
} // try-catch

It crashes in the c.getTime() call if the system date is 31 Dec 2000.

AFAIK - this is a valid sequence of calls with valid parameters. Anyone
out there know what's going wrong?

Pete

----- Original Message -----
From: "Luke Lonergan" <llonergan@didera.com>
Date: Monday, January 8, 2001 5:45 am
Subject: RE: RE: InstantDB: Dec 31, 2000 problem with IDB (versions
3.21 and 3.25)

> > Sorry - I still can't reproduce this. Maybe it's a locale
> specific
> > thing. What country are you in?
>
> US, EST. Strange...
>
> I'm using the jdk 1.3 for development and runtime... you?
>
> Luke
> -------------------------------------------------------------------
> ----------
> To unsubscribe from this mailing list, send email to
> majordomo@enhydra.orgwith the text "unsubscribe instantdb" in the
> body of the email.
> If you have other questions regarding this mailing list, send
> email to
> the list admin at owner-instantdb@enhydra.org.
>

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.