--- a/src/java.base/share/classes/java/net/DatagramPacket.java Thu Oct 17 20:27:44 2019 +0100
+++ b/src/java.base/share/classes/java/net/DatagramPacket.java Thu Oct 17 20:53:35 2019 +0100
@@ -46,13 +46,7 @@
* Perform class initialization
*/
static {
- java.security.AccessController.doPrivileged(
- new java.security.PrivilegedAction<>() {
- public Void run() {
- System.loadLibrary("net");
- return null;
- }
- });
+ jdk.internal.loader.BootLoader.loadLibrary("net");
init();
}
@@ -251,7 +245,7 @@
* @param length the length of the data
* and/or the length of the buffer used to receive data
*
- * @exception NullPointerException if the argument is null
+ * @throws NullPointerException if the argument is null
*
* @see #getData
* @see #getOffset
@@ -337,7 +331,7 @@
*
* @param buf the buffer to set for this packet.
*
- * @exception NullPointerException if the argument is null.
+ * @throws NullPointerException if the argument is null.
*
* @see #getLength
* @see #getData
@@ -363,7 +357,7 @@
*
* @param length the length to set for this packet.
*
- * @exception IllegalArgumentException if the length is negative
+ * @throws IllegalArgumentException if the length is negative
* of if the length is greater than the packet's data buffer
* length.
*