RFR: 8273402: Use derived NamingExceptions in com.sun.jndi.ldap.Connection#readReply

Aleksei Efimov aefimov at openjdk.java.net
Tue Sep 14 14:18:08 UTC 2021


On Fri, 10 Sep 2021 17:04:58 GMT, Michael Osipov <github.com+573017+michael-o at openjdk.org> wrote:

>> Hi,
>> The following fix changes type of exception thrown when an LDAP operation fails for reasons like read timeout or connection closure/cancellation: instead of throwing a general `NamingException`, the internal LDAP connection class will throw a [`CommunicationException`](https://github.com/openjdk/jdk/blob/master/src/java.naming/share/classes/javax/naming/CommunicationException.java#L29) that better matches the reasons described.
>> 
>> Testing shows no problem with the proposed fix.
>
> @AlekseiEfimov Thanks for making this happen so fast. Do you see any chance to have this backported to LTS releases where this is required? I have reported the issue initially and like to make this available in Tomcat 8.5+.

Hi @michael-o,
I'm not involved in the backporting process to older releases. You'll need to find the right contact for a particular release you need a backport for, and ask there.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5456


More information about the core-libs-dev mailing list