-
Bug
-
Resolution: Fixed
-
P3
-
1.0
-
1.0beta
-
x86
-
windows_nt
-
Not verified
From: ###@###.###
Description:
Run the following code:
Date d = new Date(1995,7, 16);
System.out.println("Date = " + d);
I know that the first arg of Date() should be 95, but when it's not
the toString() segvs. Either the constructor needs to throw an exception or
subtract 1900, or the toString() should be fixed to print a date 2 milleniums
from now (I vote A).
Description:
Run the following code:
Date d = new Date(1995,7, 16);
System.out.println("Date = " + d);
I know that the first arg of Date() should be 95, but when it's not
the toString() segvs. Either the constructor needs to throw an exception or
subtract 1900, or the toString() should be fixed to print a date 2 milleniums
from now (I vote A).