Draft JEP: 8235674: Reimplement the Legacy DatagramSocket API
Daniel Fuchs
daniel.fuchs at oracle.com
Mon Jan 13 18:35:34 UTC 2020
Hi,
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 [1].
We have been doing some prototyping, and finally got a
draft JEP written:
8235674: Reimplement the Legacy DatagramSocket API [2]
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.
best regards,
-- daniel
[1] https://openjdk.java.net/jeps/353
[2] https://bugs.openjdk.java.net/browse/JDK-8235674
More information about the nio-dev
mailing list