[jdk11u-dev] Integrated: 8209362: sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use (Bind failed)"
Antonio Vieiro
avieiro at openjdk.org
Mon Feb 16 12:07:34 UTC 2026
On Thu, 12 Feb 2026 11:30:18 GMT, Antonio Vieiro <avieiro at openjdk.org> wrote:
> Backport of [JDK-8209362](https://bugs.openjdk.org/browse/JDK-8209362) to JDK11.
>
> This is the first of a series of backports to convert the interface `SSLContextTemplate.java` in JDK11 to an abstract class as in JDK17, with the objective of making future backports easier, [as discussed earlier](https://github.com/openjdk/jdk11u-dev/pull/3136#pullrequestreview-3747461154).
>
> The change converts `private void doClientSide()` in `SSLSocketTemplate.java` to a `protected` method (as [`doServerSide()` is](https://github.com/openjdk/jdk11u-dev/blob/9ba9b672913e88b857d671d0b9458753418aff16/test/jdk/javax/net/ssl/templates/SSLSocketTemplate.java#L233)), paving the way to move `SSLSocketTemplate.java` internals into `SSLContextTemplate.java` in subsequent backports.
>
> As a side effect the `test/jdk/sun/security/ssl/SSLSocketImpl/ReuseAddr.java` test is greatly simplified by using the `SSLSocketTemplate` base class.
>
> All security tests pass:
>
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk:jdk_security 1361 1361 0 0
> ==============================
> TEST SUCCESS
>
>
> Including the modified test:
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk/sun/security/ssl/SSLSocketImpl/ReuseAddr.java
> 1 1 0 0
> ==============================
> TEST SUCCESS
This pull request has now been integrated.
Changeset: 30ff292d
Author: Antonio Vieiro <avieiro at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/30ff292d64c6686eb1d8635738c4cedb836f65cf
Stats: 225 lines in 2 files changed: 1 ins; 210 del; 14 mod
8209362: sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use (Bind failed)"
Refactor this test with SSLSocketTemplate
Reviewed-by: andrew
Backport-of: 1f3d71b6205a9b9f473b14e6848db2d49d59110d
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/3150
More information about the jdk-updates-dev
mailing list