Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305993

Add handleSocketErrorWithMessage to extend nio Net.c exception message

XMLWordPrintable

    • b19
    • generic
    • generic
    • Verified

        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. .

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: