classpath
[Top][All Lists]
Advanced

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

Re: java.util.Date mess


From: Michael Koch
Subject: Re: java.util.Date mess
Date: Tue, 12 Oct 2004 08:18:24 +0200
User-agent: KMail/1.6.2

On Monday 11 October 2004 15:39, Jeroen Frijters wrote:
> Hi,
>
> I have some code that depends on unspecified behavior of
> java.util.Date. In the Sun JDK if you pass out of range parameters
> to the Date constructors that take year, month, date, etc. it will
> automatically convert to a valid date (for example, new Date(104,
> 8, 41) is Oct 11, 2004.)
>
> I have a rather lame patch that addresses this (see below), would
> anyone object to this?

Are there mauve test that confirm that this breaks nothing ?


Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]