RFR: 8276634: Remove `usePlainDatagramSocketImpl` option from the test DatagramChannel/SendReceiveMaxSize.java

Daniel Fuchs dfuchs at openjdk.java.net
Thu Nov 4 19:28:08 UTC 2021


On Thu, 4 Nov 2021 15:18:17 GMT, Mark Sheppard <msheppar at openjdk.org> wrote:

> even though these are DatagramChannel test, DatagramChannel does encapsulate (or contains) a DatagramSocket, so may not be altogether irrelevant ?

No it's the other way round `DatagramSocket` encapsulates a `DatagramChannel`. 

The property was here to allow `DatagramSocket` to not encapsulate a `DatagramChannel` by default but revert to using the legacy `DatagramSocketImpl` implementation built in the JDK. And that impl has now been removed.

So the property never had any effect on the `DatagramChannel` implementation.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6252


More information about the nio-dev mailing list