On Tue, 10 Feb 2026 10:05:31 GMT, Jaikiran Pai <[email protected]> wrote:
> Can I please get a review of this change which proposes to prevent the > `NullPointerException` thrown from > `com.sun.jndi.ldap.sasl.SaslOutputStream.write()` methods when the stream is > already closed? This addresses https://bugs.openjdk.org/browse/JDK-8377486. > > As noted in that issue, `OutputStream.write(...)` is specified to throw an > `IOException` in such cases. The change in this PR updates the > `SaslOutputStream.write()` methods to throw an `IOException` when closed. > > A new test has been introduced to verify this change. This pull request has now been integrated. Changeset: 1d713b2b Author: Jaikiran Pai <[email protected]> URL: https://git.openjdk.org/jdk/commit/1d713b2bbe4daddc8a9b1648296b59412e683186 Stats: 151 lines in 2 files changed: 145 ins; 1 del; 5 mod 8377486: com.sun.jndi.ldap.sasl.SaslOutputStream.write() throws NullPointerException if it is already closed Reviewed-by: dfuchs ------------- PR: https://git.openjdk.org/jdk/pull/29647
