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

Typo in isValid(int timeout) API in java.sql.Connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 9
    • 7u71
    • core-libs
    • b42
    • x86_64
    • windows_7

    Backports

      Description

        A DESCRIPTION OF THE PROBLEM :
        The API states that isValid throws this SQLException

        Throws:
        SQLException - if the value supplied for timeout is less then 0

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        SQLException - if the value supplied for timeout is less than 0

        "than" is expected and not "then"
        ACTUAL -
        SQLException - if the value supplied for timeout is less then 0

        URL OF FAULTY DOCUMENTATION :
        http://docs.oracle.com/javase/7/docs/api/

        Attachments

          Issue Links

            Activity

              People

                lancea Lance Andersen
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: