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

DatagramPacket::setPort is missing its @throws IllegalArgumentException

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: