JDK-4084800 : In calendar class, roll(int,boolean) increments date but not DAY_OF_WEEK field.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.1.4
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-10-08
  • Updated: 1997-10-23
  • Resolved: 1997-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.1.4 1.1.4Fixed
Related Reports
Relates :  
Description
Sorry, shouldn't have opened this. I tested on 1.1.3. This is fixed in 1.1.4

Name: diC59631			Date: 10/08/97


import java.util.*;

class ch {
   public static void main (String args[]) {
      
	     Date d = new Date(97,6,25);
         Calendar cal =  Calendar.getInstance();
		 cal.setTime(d);
         System.out.println(cal.getTime());
		 //cal.computeFields();
		 System.out.println(cal.get(Calendar.DAY_OF_WEEK));
		 cal.roll(Calendar.DATE, true);
		 
         System.out.println(cal.getTime());
         System.out.println(cal.get(Calendar.DAY_OF_WEEK));
   }
}
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.1.4 INTEGRATED IN: 1.1.4
14-06-2004

EVALUATION This was fixed in 1.1.4
11-06-2004

WORK AROUND Name: diC59631 Date: 10/08/97 ======================================================================
11-06-2004

PUBLIC COMMENTS This was fixed in 1.1.4
10-06-2004