RFR: JDK-8305993: Add handleSocketErrorWithMessage to extend nio Net.c exception message [v2]
Alan Bateman
alanb at openjdk.org
Tue Apr 18 11:59:45 UTC 2023
On Tue, 18 Apr 2023 11:19:44 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
>> Currently we get a rather strange exception in our jtreg tests :
>>
>> java/nio/channels/DatagramChannel/AdaptorMulticasting.java
>>
>> java.net.SocketException: Exec format error
>> at java.base/sun.nio.ch.Net.joinOrDrop4(Native Method)
>> at java.base/sun.nio.ch.Net.join4(Net.java:708)
>> at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1606)
>> at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1624)
>> at Promiscuous.test(Promiscuous.java:176)
>> at Promiscuous.main(Promiscuous.java:223)
>>
>> The message could at least be improved, saying that setsockopt failed (plus providing the errno related text).
>> Example is seen on macOS btw. .
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
>
> Move function to the top of file
Marked as reviewed by alanb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/13472#pullrequestreview-1389943618
More information about the nio-dev
mailing list