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

DatagramPacket::setPort is missing its @throws IllegalArgumentException

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • None
    • core-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved: