RFR: 8264824: java/net/Inet6Address/B6206527.java doesn't close ServerSocket properly

Conor Cleary ccleary at openjdk.java.net
Tue Apr 13 10:07:00 UTC 2021


On Tue, 13 Apr 2021 09:14:47 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> test/jdk/java/net/Inet6Address/B6206527.java line 31:
>> 
>>> 29:  * @build jdk.test.lib.NetworkConfiguration
>>> 30:  *        jdk.test.lib.Platform
>>> 31:  * @run main/othervm B6206527
>> 
>> Does it need othervm mode? Best to not use it if it can be avoided.
>
> I agree with Michael that the test doesn't need the `/othervm` mode.

I included it originally as the issue was related to sockets not being closed and running in `othervm` mitigates negative effects associated with that. However using the try-with-resources prevents this from being the case, so I agree that it is no longer required and will update accordingly.

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

PR: https://git.openjdk.java.net/jdk/pull/3437


More information about the net-dev mailing list