Hi Michael,
Michael Koch wrote:
--- /var/tmp/PROJECTS/classpath//./java/net/ServerSocket.java Fri
Oct 17 19:05:29 2003
+++ java/net/ServerSocket.java Wed Oct 22 21:32:21 2003
@@ -339,7 +339,8 @@
*/
public void close () throws IOException
{
- impl.close ();
+ if (impl != null)
+ impl.close ();
if (getChannel() != null)
getChannel().close ();
After thinking about this patch, its more and more bogus in my eyes as
impl never may be null. I provided a better fix to libgcj. When its
approved I will merge it into classpath too.
Not yet, but soon it will.
ServerSocket is still broken with respect to how it behaves when it's
closed. When the socket is closed, access to methods like accept()
should throw an IOException that it's closed. Currently, no such checks