RFR: JDK-8299475: Enhance SocketException by cause where it is missing in net and nio area [v3]
Alan Bateman
alanb at openjdk.org
Wed Jan 4 10:03:49 UTC 2023
On Wed, 4 Jan 2023 08:59:51 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Hi Alan, I adjusted this coding following your suggestion to use setStackTrace.
That's just one of them. In a later comment I pasted in asSocketException and changed all 4 cases to use it, maybe you could try that. The right thing is of course to drop the translation to SocketException as anything using read/write has to deal with IOException anyway, it's really just a concern that older code may having special handling of SocketException of undocumented, but longstanding, behavior in older JDK releases.
-------------
PR: https://git.openjdk.org/jdk/pull/11813
More information about the nio-dev
mailing list