DatagramPacket::setPort is missing its @throws IllegalArgumentException

XMLWordPrintable

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

      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.

            Assignee:
            Patrick Concannon (Inactive)
            Reporter:
            Patrick Concannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: