-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove a compile time reference to com.sun.jndi.ldap.LdapCtxFactory #568
Remove a compile time reference to com.sun.jndi.ldap.LdapCtxFactory #568
Conversation
com.sun.jndi.ldap.LdapCtxFactory is not supposed to be used by anyone but the 'java.naming' module in post Java 8 world. Fixes #543
@rwinch I would appreciate if you could provide your feedback. I did not come up with a way to cover this change with a meaningful integration test because building the project on Java 9+ will require Gradle version upgrade. However, I did test this change locally by building the library and consuming it in a project that is run with Java 15 + |
Thanks, @iherasymenko! This is now merged into |
Thank you @jzheaux for reviewing and merging this. Do you have any idea how soon 2.3.4 will be released? |
Will the version 2.3.4 part of the 2.4.4 Spring Boot version? Due to the Java 16 issue? |
With this change the I think this PR is good as a workaround that provides compatibility with recently released Java 16 to Spring LDAP 2.3.x, so please release 2.3.4 with it. Consider to do changes I proposed above in Spring LDAP 2.4.0. |
@rosti-il nice catch! Using |
@iherasymenko Thanks for the offer. Can you please prepare a PR for the changes? |
Fixes #543
com.sun.jndi.ldap.LdapCtxFactory
is not supposed to be used by anyone but the 'java.naming' module in post Java 8 world.Having the hard-reference leads to a class loading error when used with
--illegal-access=deny
or when simply put on module path.