commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #9280] Closing a socket nulls impl but getImpl() isn't checked for


From: David Holmes
Subject: [bugs #9280] Closing a socket nulls impl but getImpl() isn't checked for null
Date: Wed, 09 Jun 2004 20:35:33 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

This mail is an automated notification from the bugs tracker
 of the project: classpath.




/**************************************************************************/
[bugs #9280] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9280>
Project: classpath
Submitted by: David Holmes
On: Thu 06/10/2004 at 00:34

Severity:  5 - Average
Resolution:  None
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  Closing a socket nulls impl but getImpl() isn't checked for null

Original Submission:  java.net.Socket:

When a socket is closed impl is set to null. However, some methods use 
getImpl() without checking for isClosed() first. In particular:

- isConnected() will throw NullPointerException if called on a closed socket. 
Hence so will
   - getPort
   - getInetAddress
   - getRemoteSocketAddress
   - toString

- getLocalAddress() will throw NullPointerException if called on a closed 
socket.

- setReuseAddress() will throw NullPointerException if called on a closed 
socket.











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9280>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]