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

API: GregorianCalendar: getMinimum(field)/getMaximum(field)/etc undefined

XMLWordPrintable

    • b43
    • sparc
    • solaris_2.6

      Name: sdR10048 Date: 10/28/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b25"
      JCK : 1.5
      Platform[s] : Solaris
      switch/Mode :
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test [s] :


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public int getMinimum(int field)
      Returns minimum value for the given field. e.g. for Gregorian DAY_OF_MONTH, 1 Please see Calendar.getMinimum for descriptions on parameters and the return value.

      Specified by:
      getMinimum in class Calendar
      Parameters:
      field - the given time field.
      Returns:
      the minimum value for the given time field.

      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      The spec for methods

          getMinimum(int field)
          getMaximum(int field)
          getGreatestMinimum(int field)
          getLeastMaximum(int field)
          getActualMinimum(int field)
          getActualMaximum(int field)

      does not specify the expected return values for different 'field' parameters.
      For example for ZONE_OFFSET.

      Currently spec does refer to Calendar specification but there is no expected
      information either

      Please see http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method
      for more information regarding this issue.


      JCK test source location:
      ==========================
      /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

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

            okutsu Masayoshi Okutsu
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: