8301463: Code in DatagramSocket still refers to resolved JDK-8237352

Reviewed-by: dfuchs
This commit is contained in:
Michael McMahon 2023-02-15 10:19:49 +00:00
parent 11194e8b82
commit 52388179e6

View file

@ -1350,7 +1350,6 @@ public class DatagramSocket implements java.io.Closeable {
delegate().leaveGroup(mcastaddr, netIf);
}
// Temporary solution until JDK-8237352 is addressed
private static final SocketAddress NO_DELEGATE = new SocketAddress() {};
/**
@ -1393,7 +1392,6 @@ public class DatagramSocket implements java.io.Closeable {
static <T extends DatagramSocket> T createDelegate(SocketAddress bindaddr, Class<T> type)
throws SocketException {
// Temporary solution until JDK-8237352 is addressed
if (bindaddr == NO_DELEGATE) return null;
assert type == DatagramSocket.class || type == MulticastSocket.class;