You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on JDK 16 support for Spring Boot (see spring-projects/spring-boot#24402) and noticed that AbstractContextSource cannot be instantiated as of JDK16+ anymore.
One idea would be to deprecate setContextFactory(Class) & getContextFactory() in favor of setContextFactoryName(String) & getContextFactoryName() and a new field contextFactoryName that is instantianted with com.sun.jndi.ldap.LdapCtxFactory instead of referencing the class.
Hi,
I'm currently working on JDK 16 support for Spring Boot (see spring-projects/spring-boot#24402) and noticed that
AbstractContextSource
cannot be instantiated as of JDK16+ anymore.I guess this is related to the new strong encapsulation being enabled by default (see https://openjdk.java.net/jeps/396).
I can currently workaround this by passing
--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
but users would have the same problem again.Cheers,
Christoph
The text was updated successfully, but these errors were encountered: