Hi Martin
Thanks for the info. Although the circumstances are slightly different
I think this is the same problem as you've found on the bug parade.
I'll leave Sun to fix this one.
Pete
----- Original Message -----
From: "Martin Husted Hartvig" <mhh@autocom.dk>
Date: Sunday, December 31, 2000 9:13 am
Subject: 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.
> Anyoneout 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.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.
|