(cal) RFE: GregorianCalendar needs more constructors

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.3.1, 1.4.0, 5.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: