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

DatagramPacket::setPort is missing its @throws IllegalArgumentException

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      DatagramPacket::setPort is missing its `@throws IllegalArgumentException` from its spec for an out-of-range port numbers.

      Subsquently, several methods within this class which call on this method also don't declare this behaviour in their spec e.g. DatagramPacket::setSocketAddress, and several of the DatagramPacket contructors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pconcannon Patrick Concannon
                Reporter:
                pconcannon Patrick Concannon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: