8155963: Fix deprecation warning in windows java.net implementation

Reviewed-by: prr
This commit is contained in:
Joe Darcy 2016-05-03 12:18:50 -07:00
parent 01ee88c8ae
commit bd838767a7

@ -90,7 +90,9 @@ class DefaultDatagramSocketImplFactory
throws SocketException {
if (prefixImplClass != null) {
try {
return (DatagramSocketImpl) prefixImplClass.newInstance();
@SuppressWarnings("deprecation")
Object result = prefixImplClass.newInstance();
return (DatagramSocketImpl) result;
} catch (Exception e) {
throw new SocketException("can't instantiate DatagramSocketImpl");
}