RFR: 8347173: java/net/DatagramSocket/InterruptibleDatagramSocket.java fails with virtual thread factory [v2]

Jaikiran Pai jpai at openjdk.org
Wed Jan 15 01:30:47 UTC 2025


On Tue, 14 Jan 2025 15:14:22 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Hello Daniel, My initial idea was to change this test the exact same way as you propose. However, as I note in the JBS issue, the test fails with virtual threads even then:
>> 
>>> The test expects the SocketException that gets thrown in such cases to have a exception cause of ClosedByInterruptException.
>>> ...
>>> I don't see that specified in the DatagramSocket.receive(), so it might be that we will have to re-evaluate that test code separately. 
>> 
>> I did not want to block any of Leonid's testing work in this area so I decided to skip this test for now. I plan to re-evaluate this test code as a separate task.
>
> Makes sense.

I've created https://bugs.openjdk.org/browse/JDK-8347756 to re-evaluate that catch block in this test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23074#discussion_r1915830175


More information about the net-dev mailing list