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

Statement.setQueryTimeout needs to be updated to reference SQLTimeoutException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • cts_5.0
    • core-libs
    • None
    • b120
    • generic
    • generic
    • Not verified

      The javadocs for Statement.setQueryTimeout needs updated:

      > Statement#setQueryTimeout:
      > > void setQueryTimeout(int seconds)
      > > throws SQLException
      > >
      > > Sets the number of seconds the driver will wait for a Statement object
      > > to execute to the given number of seconds. If the limit is exceeded,
      > > an SQLException is thrown.
      > > ************
           The above should be changed to be SQLTimeoutException?

            lancea Lance Andersen
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: