From 9b012d25b8555a5eddb6fd47aafe6b931abe8fe6 Mon Sep 17 00:00:00 2001 From: "Neil A. Wilson" Date: Tue, 28 Aug 2018 12:20:27 -0500 Subject: [PATCH] Better handling for Throwable Improved the LDAP SDK's behavior in some cases where it caught Throwable and could suppress an Error that would have been better to re-throw back to the caller, after ensuring that any appropriate cleanup is performed. In some cases, the same is also true for RuntimeException. --- docs/release-notes.html | 8 ++ .../LDAPListenerClientConnection.java | 2 +- .../ldap/sdk/AbstractConnectionPool.java | 2 + src/com/unboundid/ldap/sdk/ConnectThread.java | 1 + .../ldap/sdk/LDAPConnectionPool.java | 2 + .../sdk/LDAPThreadLocalConnectionPool.java | 2 + .../sdk/persist/DefaultObjectEncoder.java | 10 +- .../ldap/sdk/persist/LDAPObjectHandler.java | 35 ++--- src/com/unboundid/util/StaticUtils.java | 95 +++++++++++++ .../AsynchronousParallelProcessor.java | 3 +- .../util/parallel/ParallelProcessor.java | 2 +- .../unboundid/util/StaticUtilsTestCase.java | 134 ++++++++++++++++++ 12 files changed, 271 insertions(+), 25 deletions(-) diff --git a/docs/release-notes.html b/docs/release-notes.html index f0309627f..1c5514a19 100644 --- a/docs/release-notes.html +++ b/docs/release-notes.html @@ -13,6 +13,14 @@

Version 4.0.8