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

Calendar.get/set(int...) spec does not document behaviour for invalid input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • docs
    • beta
    • sparc
    • solaris_2.5
    • Verified



      Name: apR10100 Date: 09/20/2000



      Calendar.get/set(int...) spec does not document behaviour for invalid input

      1.4 api spec only states:
      "public final int get(int field)
      Gets the value for a given time field.
      Parameters:
      field - the given time field.
      Returns:
      the value for the given time field.
      "
      and
      "public final void set(int field, int value)
      Sets the time field with the given value.
      Parameters:
      field - the given time field.
      value - the value to be set for the given time field.
      "

      Handling of invalid field parameter should be specified.

      ======================================================================

            jhosunw Jamie Ho (Inactive)
            avpsunw Avp Avp (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: