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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 7u71
    • Component/s: core-libs
    • b42
    • x86_64
    • windows_7

        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/

              Assignee:
              Lance Andersen
              Reporter:
              Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: