-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 instantiation of com.sun.jndi.ldap.LdapCtxFactory for JDK16+ compatibility #18385
Conversation
…ompatibility Resolves #17092
Not entirely sure about backporting to 2.0.1 but I'm leaning towards yes. |
I think this needs to be carefully verified as the initial issue was a corner case. |
I think it fails with the tests we have... given you have the right tool to build the native images. I wouldn't be surprised if the issue is only with Mandrel. @zakkak any chance you could help here? Maybe run this PR with Mandrel releases? |
@gsmet I am not sure how I can help. It appears like this patch is to resolve a JDK16+ compatibility issue. I have no way to verify this since we are not yet building/testing Mandrel for JDK 16+. Would a test using Mandrel 21.1 (JDK11 based) suffice? |
@zakkak I think a JDK 11 based Mandrel test would cover Guillaume's concerns. |
OK, I started the following two:
|
@zakkak yeah that's exactly what I wanted. This workaround was added for Mandrel so if we want to remove it, we need to make sure it's not an issue anymore. |
@gsmet both Mandrel 20.3 and 21.1 runs passed :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, let's do it then. Thanks @zakkak for checking!
Resolves #17092
The following change in Spring led me to try out removing it and lo and behold, it worked: spring-projects/spring-ldap#568
See #8651 and #8696 for more context of that instantiation.
Not sure who can review this... @sberyozkin maybe? Or @galderz?