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

GregorianCalendar.roll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.1.4, 1.1.5
    • core-libs
    • x86, sparc
    • solaris_2.5.1, windows_95



      Name: diC59631 Date: 09/26/97


      GregorianCalendar c = new GregorianCalendar();
      loop
      c.roll(GregorianCalendar.DATE,true);
      end loop

      This does not work over a month boundary. It
      fails to update the month. (Rolling down does
      the same thing.) Therefore after August 31, we go
      to August 1 instead of September 1.

      I am using JavaWorkshop 2 and my classpath has
      jdk1.1.4/lib/classes.zip before the
      JDK/lib/classes.zip
      ======================================================================

            aliusunw Alan Liu (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: