diff options
Diffstat (limited to 'libjava/java/net/DatagramPacket.java')
| -rw-r--r-- | libjava/java/net/DatagramPacket.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libjava/java/net/DatagramPacket.java b/libjava/java/net/DatagramPacket.java index 836f5dd66b8..7fbb3f8da35 100644 --- a/libjava/java/net/DatagramPacket.java +++ b/libjava/java/net/DatagramPacket.java @@ -195,6 +195,7 @@ public final class DatagramPacket * @param address The socket address to send to * * @exception SocketException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -215,6 +216,7 @@ public final class DatagramPacket * @param address The socket address to send to * * @exception SocketException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -321,7 +323,7 @@ public final class DatagramPacket * * @param address The socket address of the remove host * - * @exception IllegalArgumentException If an error occurs + * @exception IllegalArgumentException If address type is not supported * * @since 1.4 */ @@ -353,6 +355,8 @@ public final class DatagramPacket * * @param buf The new buffer for this packet * + * @exception NullPointerException If the argument is null + * * @since 1.1 */ public synchronized void setData(byte[] buf) @@ -372,6 +376,8 @@ public final class DatagramPacket * @param offset The offset into the buffer to start reading data from. * @param length The number of bytes of data in the buffer. * + * @exception NullPointerException If the argument is null + * * @since 1.2 */ public synchronized void setData(byte[] buf, int offset, int length) @@ -398,6 +404,9 @@ public final class DatagramPacket * * @param length The new length. (Where len <= buf.length) * + * @exception IllegalArgumentException f the length is negative or + * if the length is greater than the packet's data buffer length + * * @since 1.1 */ public synchronized void setLength(int length) |
