[jdk11u-dev] RFR: 8209362: sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use (Bind failed)"
Antonio Vieiro
avieiro at openjdk.org
Fri Feb 13 10:28:42 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
Test failure in macos/tier1/serviceability is unrelated (timeout on GHA macos runner):
2026-02-12T12:49:17.1528850Z ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test ERROR java.io.IOException: App waiting timeout
2026-02-12T12:49:17.1541040Z REASON: User specified action: run main/othervm/timeout=480 ClhsdbFindPC true true
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/3150#issuecomment-3896363066
More information about the jdk-updates-dev
mailing list