Details
-
Bug
-
Resolution: Won't Fix
-
P3
-
1.4.2, 5.0
-
generic
-
generic
Description
According to the bug 4662789 SocketException could not be thrown in any
condition but descriptions of two DatagramPacket contructors still have
SocketException in "Throws" paragraph.
For the following constructors:
public DatagramPacket(byte[] buf, int length, SocketAddress address)
public DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
the spec in "Throws" paragraph says:
" Throws:
IllegalArgumentException - if address type is not supported
SocketException"
So, the spec. shouldn't mention SocketException for these constructors.
###@###.### 2004-03-26
condition but descriptions of two DatagramPacket contructors still have
SocketException in "Throws" paragraph.
For the following constructors:
public DatagramPacket(byte[] buf, int length, SocketAddress address)
public DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
the spec in "Throws" paragraph says:
" Throws:
IllegalArgumentException - if address type is not supported
SocketException"
So, the spec. shouldn't mention SocketException for these constructors.
###@###.### 2004-03-26
Attachments
Issue Links
- relates to
-
JDK-4662789 DatagramPacket ctor throws IllegalArgumentExc instead of SocketException
- Closed