RFR: [XS] 8250770 : Net.java translateToSocketException does not handle IOException
Baesken, Matthias
matthias.baesken at sap.com
Wed Jul 29 10:39:40 UTC 2020
Hi Alan , thanks for your input . What about :
nx = new SocketException("IO error:" + x.getMessage());
?
>This seems to be a long standing issue in the socket adaptors. Legacy DatagramSocket/MulticastSocket delegate to a socket adaptor since JDK 15 so I assume this is why you only see this now.
> Changing translateToSocketException seems okay but "IO error" is going to be confusing. Can you >use x.getMessage() as the message instead?
Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200729/3333a7be/attachment.htm>
More information about the nio-dev
mailing list