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

Javadoc incorrectly states about security checks in ServerSocket.accept()

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6

      Name: dfC67450 Date: 04/05/2000



      Javadoc states about java.net.ServerSocket.accept():

       
           * if there is a security manager,
           * the security manager's checkAccept method is called
                                    ^^^^^^^^^^^
           * with s.getInetAddress().getHostAddress() and s.getPort()
           * as its arguments to ensure the operation is allowed.
           * This could result in a SecurityException.

      but:

           * @exception SecurityException if a security manager exists and its
           * checkListen method doesn't allow the operation.
                         ^^^^^^^^^^^

      and should be slightly corrected.

      ======================================================================

            chegar Chris Hegarty
            fdasunw Fda Fda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: