RFR[8222829]: DatagramSocket.setSoTimeout does not specify IAE when timeout is negative

Patrick Concannon patrick.concannon at oracle.com
Fri Sep 27 15:00:15 UTC 2019


Hi Alan,


I've added a similar check for DatagramChannel socket adaptor as 
requested. You can find it in the webrev below.

http://cr.openjdk.java.net/~pconcannon/8219446/webrevs/webrev.01/


Kind regards,

Patrick

On 26/09/2019 14:38, Alan Bateman wrote:
> On 26/09/2019 14:26, Patrick Concannon wrote:
>> Hi Chris,
>>
>>
>> Thanks for your reply.
>>
>> I've added the test case to 
>> test/jdk/java/net/DatagramSocket/DatagramTimeout.java as requested.
>>
>> You can find the new webrev here: 
>> http://cr.openjdk.java.net/~pconcannon/8222829/webrevs/webrev.01/
> We should probably check that we also have tests for the 
> DatagramChannel socket adaptor. Its setSoTimeout does throw IAE when 
> the timeout is negative but it may not be tested.
>
> -Alan.


More information about the net-dev mailing list