On Mon, 24 May 2021 14:34:54 GMT, Mark Sheppard <mshep...@openjdk.org> wrote:
>> Mark Sheppard has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JDK-8265362 java/net/Socket/UdpSocket.java fails with >> "java.net.BindException: Address already in use" (macos-aarch64) >> update as per request by AB > > I used stdout for convenience as it aligns with the two other output > statements, so that I see immediately the retry output as follows: > > ----------System.out:(12/349)---------- > [TestNG] Running: > java/net/Socket/UdpSocket.java > > BindException caught retry Socket creation > test UdpSocket.testMaxSockets(): success > test UdpSocket.testSendReceive(): success > > =============================================== I could have used return directly in multiple places ... but my style preference is a single exit point from a method ------------- PR: https://git.openjdk.java.net/jdk/pull/4103