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

java/net/SocketOption/AfterClose.java test incorrectly handles IP_MULTICAST_IF

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      The test tries to pass a boolean value for the IP_MULTICAST_IF option and expects to get SocketException("Socket is closed");
      An implementation should be in its own right to throw an IllegalArgumentException instead (and DatagramChannel;;socket()) actually does.
      The test should be fixed to either pass a NetworkInterface or accept IllegalArgumentException as a valid outcome.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pconcannon Patrick Concannon
                Reporter:
                dfuchs Daniel Fuchs
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: