RFR[7021373]: DatagramPacket exception conditions are not clear

Chris Hegarty chris.hegarty at oracle.com
Fri Jan 24 15:16:33 UTC 2020



On 24/01/2020 12:07, Chris Hegarty wrote:
> Patrick,
> 
> On 24/01/2020 11:14, Patrick Concannon wrote:
>> Hi,
>>
>> Could someone please review my fix and CSR for issue JDK-7021373 
>> 'DatagramPacket exception conditions are not clear' ?
>>
>> This fix updates the spec concerning the exceptions thrown by the 
>> constructors of the DatagramPacket class, and several methods therein.
>>
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-7021373
>>
>> CSR: https://bugs.openjdk.java.net/browse/JDK-8237774
>> webrev: http://cr.openjdk.java.net/~pconcannon/7021373/webrevs/webrev.00/
> 
>...

An additional comment.

Can we please have a class-level specification of whatthe
valid port range is; 0 <= port <= 0xFFFF? This should be
verifiable .

-Chris.




More information about the net-dev mailing list