← Back to team overview

sslug-teknik team mailing list archive

Dato fejl i JDK!

 

Hejsa!

Da jeg laeste her paa listen at en del brugte Jave DK - taenkte jeg at
dette maaske var interesant for nogle:

-----
A year is leap if and only if it is divisible by 4, unless it is
divisible by 100 in which case it should be divisible by 400; which is
the case of the year 2000.

Therefore, The year 2000 is a leap year, ie Tuesday is Feb 29, NOT March
01.

1900 on the other hand was a common year in which Feb had only 28 days.

We have encountered a serious problem in the SUN  JDK 1.1.2 which
doesn't recognise Feb 29, 2000. This leads to Exceptions such as
"classDefNotFound" for classes that you know are in your classpath.
Outputting the trapped exception to StdErr will show that the assignment
in question is illegal.

Please be alert. The media hasn't talked about this very much and it's a
disaster waiting to happen.
------

Som er en intern note her i firmaet - men mon ikke det er iorden at
dele lidt :)

'Martin




Follow ups