--- old/src/java.base/share/classes/java/net/DatagramSocket.java 2015-04-22 17:43:50.579422725 -0700 +++ new/src/java.base/share/classes/java/net/DatagramSocket.java 2015-04-22 17:43:50.399422721 -0700 @@ -308,7 +308,7 @@ // getDeclaredMethod, therefore we need permission to access the member try { AccessController.doPrivileged( - new PrivilegedExceptionAction() { + new PrivilegedExceptionAction<>() { public Void run() throws NoSuchMethodException { Class[] cl = new Class[1]; cl[0] = DatagramPacket.class;