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

sql.Date and sql.Time documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.4, 1.1.5, 1.1.6, 1.1.8
    • docs
    • beta
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_95, windows_nt
    • Not verified



      Name: mf23781 Date: 03/02/98


      JDK 1.1.4 documentaton for java.sql.Time.toString() says
      "Format a time in JDBC date escape format"
      it should say
      "Format a time in JDBC time escape format"

      JDK 1.1.4 documentaton for java.sql.Date
      lists the following methods:
      getHours()
      getMinutes()
      getSeconds()
      setHours(int)
      setMinutes(int)
      setSeconds(int)

      And JDK 1.1.4 documentaton for java.sql.Time
      lists the following methods:
      getDate()
      getDay()
      getMonth()
      getYear()
      setDate()
      setMonth()
      setYear()
      All these methods throw an java.lang.IllegalArgumentException.
      I would suggest they are removed from the documentation
      and a more meaningful exception generated if possible.

      When using java.sql.Date, if you want to get or set the
      date, month or year the relevant method from java.util.Date
      will be inherited.
      When using java.sql.Time, if you want to get or set the
      hours, minutes or seconds the relevant method from java.util.Date
      will be inherited.
      In both these cases the inherited methods are depricated.

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

            asommere Alan Sommerer (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: