RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength()

Jaikiran Pai jpai at openjdk.org
Fri Aug 26 07:57:27 UTC 2022


Can I please get a review of this javadoc only change for `DatagramPacket#setLength()` method? This addresses https://bugs.openjdk.org/browse/JDK-7113208.

I haven't create a CSR because the javadoc was already stating the correct behaviour in the `@throws` documentation as follows:

> @throws  IllegalArgumentException    if the length is negative,
     *          or if the length plus the offset is greater than the
     *          length of the packet's data buffer.

This commit merely fixes the main part of the javadoc.

-------------

Commit messages:
 - 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength()

Changes: https://git.openjdk.org/jdk/pull/10037/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10037&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-7113208
  Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/10037.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10037/head:pull/10037

PR: https://git.openjdk.org/jdk/pull/10037


More information about the net-dev mailing list