java.util.Date.setDay() does not recalc date. See SuggestedFix
Steps to reproduce
Compile and run the following code
/* setDay tests */
import java.util.Date;
class setDayTest
{
public static void main(String s[])
{
Date d1 = new Date(95, 10, 20);
System.out.println("Date: " + d1);
d1.setDay(5);
System.out.println("setDay(5), Fri Nov 24 1995: " + d1);
}
}
Steps to reproduce
Compile and run the following code
/* setDay tests */
import java.util.Date;
class setDayTest
{
public static void main(String s[])
{
Date d1 = new Date(95, 10, 20);
System.out.println("Date: " + d1);
d1.setDay(5);
System.out.println("setDay(5), Fri Nov 24 1995: " + d1);
}
}