-
Bug
-
Resolution: Fixed
-
P3
-
1.0
-
1.1
-
x86
-
windows_nt
-
Not verified
java.util.Date.setYear() should recalc day of week
Steps to reproduce
Compile and run the following code
/* tests setYear() */
import java.util.Date;
class setYearTest
{
public static void main(String a[])
{
Date d1 = new Date(95, 10, 21);
System.out.println("Starting date: " + d1);
d1.setYear(96);
System.out.println("Wrap date to Thu Nov 21, 1996: " + d1);
}
}
Steps to reproduce
Compile and run the following code
/* tests setYear() */
import java.util.Date;
class setYearTest
{
public static void main(String a[])
{
Date d1 = new Date(95, 10, 21);
System.out.println("Starting date: " + d1);
d1.setYear(96);
System.out.println("Wrap date to Thu Nov 21, 1996: " + d1);
}
}
- relates to
-
JDK-1226864 Date.setDate() does not recalc day of week, all platforms
-
- Closed
-
-
JDK-1229000 util.Date.setMonth() should recalc day of week
-
- Closed
-