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

Jaikiran Pai jpai at openjdk.org
Sat Sep 3 05:50:47 UTC 2022


On Thu, 1 Sep 2022 07:01:14 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> 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.
>
> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
> 
>   review comment - use Preconditions

Thank you Alan and Daniel for the reviews. tier1,tier2,tier3 testing went fine with these changes.

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

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


More information about the net-dev mailing list