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

(cal) RFE: GregorianCalendar needs more constructors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.1, 1.4.0, 5.0
    • core-libs
    • generic, x86
    • generic, linux, windows_xp



      Name: bsT130419 Date: 10/22/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      GregorianCalendar (and maybe Calendar) needs constructors: GregorianCalendar
      (long) and GregorianCalendar(Date). The present constructors initialize ALL
      fields with current time, which is a fairly expensive operation and unnecessary
      if on is not intereste in the current time. Even (int, int, int) constructors
      first initialize using the current time, which is a total waste since fields
      are overwritten immediately.
      (Review ID: 134160)
      ======================================================================

            okutsu Masayoshi Okutsu
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: