RFR 8065076/9, test/java/net/SocketPermission/SocketPermissionTest.java failed intermittently
felix.yang at oracle.com
Thu Jan 14 06:07:22 UTC 2016
please review the fix for
test/java/net/SocketPermission/SocketPermissionTest.java, which fails
frequently with "java.net.BindException: Address already in use".
The test uses getFreePort() test util library to verify permission on
specific "host:port". This fix added retries to avoid possible binding
1. A port may be still occupied for a short moment after socket close.
2. Another application is possible to occupy the same port during the
short time window of open-close-reuse. This has been observed in
experimental test runs.
More information about the core-libs-dev