Need more clarifications for Timestamp constructor spec

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: docs
    • None
    • beta
    • sparc
    • solaris_2.6



      Name: acR10002 Date: 03/12/2001


      The current spec for java.sql.Timestamp 7-arg constructor says:
      -------------------
      public Timestamp(int year,
                       int month,
                       int date,
                       int hour,
                       int minute,
                       int second,
                       int nano)

           Deprecated. instead use the constructor Timestamp(long millis)

           Constructs a Timestamp object initialized with the given values.
           Parameters:
               year - year-1900
               month - 0 to 11
               date - 1 to 31
               hour - 0 to 23
               minute - 0 to 59
               second - 0 to 59
               nano - 0 to 999,999,999

      -------------------
      It's not clear what is the expected behavior if month, date, hour, minute,
      second, or nano parameters are outside of the ranges specified. Despite
      the fact this API is deprecated, the spec clarification is required for
      conformance testing.

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

            Assignee:
            Maydene Fisher (Inactive)
            Reporter:
            Ayc Ayc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: