adding rsockets support into JDK
Alan Bateman
Alan.Bateman at oracle.com
Sat Apr 28 07:59:59 UTC 2018
On 27/04/2018 18:26, Lu, Yingqi wrote:
> Hi Alan,
>
> I have a question regarding to replace "changing system-wide SocketImplFactory" to "returning new Socket(impl)". Is it OK if I change Socket(impl) constructor from protected to public? I need to call it from jdk.net module.
>
It doesn't need to be changed as you can call it from an anonymous
subclass, e.g.:
SocketImpl impl = factory.createSocketImpl();
return new Socket(impl) { };
-Alan
More information about the nio-dev
mailing list