-
Bug
-
Resolution: Fixed
-
P3
-
1.0
-
1.1
-
x86
-
windows_nt
-
Not verified
java.util.Date.setMonth() should recalc the day of the week..
Steps to reproduce:
Compile and run the following code
// tests setMonth()
import java.util.Date;
class setMonthTest
{
public static void main(String args[])
{
Date d1 = new Date(95, 10, 21);
System.out.println("Date " + d1);
d1.setMonth(11);
System.out.println("Date changed to December " + d1);
d1.setMonth(12);
System.out.println("Date wrapped to January " + d1);
}
}
Steps to reproduce:
Compile and run the following code
// tests setMonth()
import java.util.Date;
class setMonthTest
{
public static void main(String args[])
{
Date d1 = new Date(95, 10, 21);
System.out.println("Date " + d1);
d1.setMonth(11);
System.out.println("Date changed to December " + d1);
d1.setMonth(12);
System.out.println("Date wrapped to January " + d1);
}
}
- relates to
-
JDK-1226864 Date.setDate() does not recalc day of week, all platforms
-
- Closed
-
-
JDK-1229004 util.Date.setYear() should recalc day of week
-
- Closed
-