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

JDK1.1.6: Socket options do not raise exceptions as specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.6, 1.3.0
    • core-libs
    • None
    • beta
    • generic, sparc
    • generic, solaris_2.6

      Sockets are built on top of the public class SocketImpl which extends SocketOptions.
      SocketOptions.getOption and SocketOptions.setOption both specifically
      define in their spec that
       * @throws SocketException if the socket is closed

      In practice, on Solaris this does not happen. The socket can be closed
      and the Socket.getXXX methods do NOT get an exception.

      Attached is a simple test program that demonstrates that getSoTimeout continues
      to work after the socket is closed.

      I have set the severity high because JavaTest (used in JCK) requires some
      way of testing whether a socket has been closed or not. Given a suitable
      workaround, I will lower the severity.

            alanb Alan Bateman
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: