Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1229004

util.Date.setYear() should recalc day of week

XMLWordPrintable

    • 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);
          }
      }

            duke J. Duke
            kasmithsunw Kevin Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: