-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
Deprecate mock JNDI support in the spring-test module #22779
Comments
sbrannen
changed the title
Deprecate mock JNDI support in org.springframework.mock.jndi
Deprecate mock JNDI support in the spring-test module
Apr 10, 2019
sbrannen
added a commit
to sbrannen/spring-framework
that referenced
this issue
Apr 11, 2019
This commit removes the @deprecated declaration on the org.springframework.mock.jndi package, since such usage results in a compiler warning on JDK 9+ which breaks Spring's JDK 9 and JDK 11 CI builds. https://bugs.openjdk.java.net/browse/JDK-6481080 See spring-projectsgh-22779
sbrannen
added a commit
that referenced
this issue
Apr 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
The mock JNDI support in the
org.springframework.mock.jndi
package is 15 years old, only partially implemented (see #22732), and typically not very useful for a modern Spring application where beans such as aDataSource
should ideally be registered as stand-alone beans in theApplicationContext
and swapped out for integration tests (e.g., via bean definition profiles).We should therefore deprecate this support and recommend that users use something better suited such as Simple-JNDI.
Related Issues
Deliverables
org.springframework.mock.jndi
package inspring-test
.org.springframework.tests.mock.jndi
in thesrc/test/java
source tree ofspring-context
for internal testing purposes.The text was updated successfully, but these errors were encountered: