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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 7u71
    • 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/

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

                Created:
                Updated:
                Resolved: