Draft JEP: 8235674: Reimplement the Legacy DatagramSocket API
daniel.fuchs at oracle.com
Mon Jan 13 18:35:34 UTC 2020
For some time now we've been considering replacing the
implementation of DatagramSocket and MulticastSocket with
something more modern, based on NIO, much similar to what
was done for Socket and ServerSocket in JEP 353 .
We have been doing some prototyping, and finally got a
draft JEP written:
8235674: Reimplement the Legacy DatagramSocket API 
We also have a prototype implementation (work in progress)
in the `JDK-8230211-branch` of the JDK Sandbox:
hg clone http://hg.openjdk.java.net/jdk/sandbox
hg update -r JDK-8230211-branch
The draft JEP explains the motivation and also lists a
couple of alternatives we have considered/prototyped
before reaching the current proposal.
A side effect of this JEP will be to obsolete the
DatagramSocketImpl and DatagramSocketImpl factory - which
we are considering deprecating (either before, after, or
as part of the JEP). Feedback on this JEP before submission
would be very welcome.
More information about the nio-dev