Integrated: JDK-8317603: Improve exception messages thrown by sun.nio.ch.Net native methods (win)
Matthias Baesken
mbaesken at openjdk.org
Wed Oct 11 06:47:26 UTC 2023
On Thu, 5 Oct 2023 14:33:14 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> On Windows, we miss a handleSocketErrorWithMessage function that provides an additional message showing what went wrong in the Net.c coding. On Unix we have this function.
> This leads sometimes to exceptions like
>
> MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.ConnectException: Connection timed out: no further information]
>
> see https://bugs.openjdk.org/browse/JDK-8317307
>
> It would be better to have a message explaining the reason instead of "no further information" .
This pull request has now been integrated.
Changeset: a9b41da9
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a9b41da9df398ae7e2cf598b2779808d16504e14
Stats: 39 lines in 5 files changed: 5 ins; 8 del; 26 mod
8317603: Improve exception messages thrown by sun.nio.ch.Net native methods (win)
Reviewed-by: vtewari, alanb, djelinski
-------------
PR: https://git.openjdk.org/jdk/pull/16057
More information about the nio-dev
mailing list