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

Negative timeouts should cause IllegalArgumentException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic, sparc
    • OS:
      generic

      Description

      Socket.connect() & Socket.setSoTimeout() do accept negative values for the
      timeout. This is totally undocumented and inconsistent with other APIs.
      Negative values should cause an IllegalArgumentException.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jccollet Jean-Christophe Collet (Inactive)
              Reporter:
              jccollet Jean-Christophe Collet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: