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

Need more clarifications for Timestamp constructor spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • 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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: