< prev index next >
src/java.naming/share/classes/javax/naming/ldap/StartTlsRequest.java
Print this page
*** 190,211 ****
if (resp != null) {
return resp;
}
try {
VersionHelper helper = VersionHelper.getVersionHelper();
! Class<?> clas = helper.loadClass(
! "com.sun.jndi.ldap.ext.StartTlsResponseImpl");
! resp = (StartTlsResponse) clas.newInstance();
!
! } catch (IllegalAccessException e) {
! throw wrapException(e);
!
! } catch (InstantiationException e) {
! throw wrapException(e);
!
! } catch (ClassNotFoundException e) {
throw wrapException(e);
}
return resp;
}
--- 190,205 ----
if (resp != null) {
return resp;
}
try {
VersionHelper helper = VersionHelper.getVersionHelper();
! @SuppressWarnings("deprecation")
! Object o = helper.loadClass(
! "com.sun.jndi.ldap.ext.StartTlsResponseImpl").newInstance();
! resp = (StartTlsResponse) o;
! } catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {
throw wrapException(e);
}
return resp;
}
< prev index next >