JDK-4118434 : java.net.Socket specification flaw: close behaviour
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-03-10
  • Updated: 2006-04-21
  • Resolved: 2006-04-21
Related Reports
Duplicate :  
Relates :  
Description
See bugid 4118429, as listed in the "see also" field.

Basically, The fact that closing a socket's input stream closes the
socket itself is (a) undocumented (b) contrary to normal expectations
of an experienced network programmer, (c) not going to change.

Ergo, I think this needs documenting.  (Similarly for the output stream.)
Javadocs as well as other places such issues will matter (tutorials etc).

Comments
EVALUATION this is a duplicate of 4717638.
21-04-2006

WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004