-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Upgrade to Spring 6.1 requires Servlet 6.0 (JEE 10) #34106
Comments
This is expected and called out in the Upgrading from Spring Framework 5.3 notes:
Please make sure to upgrade your application iteratively, minor version by minor version, for a smoother experience. Thanks! |
Thanks for pointing out this update @bclozel I understand that breaking changes are expected between major versions, but could you clarify the rationale behind using the Servlet 6.0 API exclusively for mock-based tests? Would it be possible to maintain compatibility with Servlet 5.0 for both 6.0 and 6.1? Changes like these introduce significant complexity to the migration process. Because of inconsistencies like this, we’re unable to take an incremental approach, which forces a more disruptive, all-at-once upgrade. This not only impacts development timelines but also increases the risk of errors and integration issues. A more consistent approach would ease the transition and make the migration much more manageable. |
We did our best to avoid this situation, but as explained by Juergen on the original issue we didn't have much choice here.
We're very much aware of this and do our best to have the smoothest upgrade experience possible. If you want to get the best upgrade experience for your applications, testing our milestone releases and giving us feedback is the best way to influence the roadmap. For example, we're about to release our first Framework 7.0 milestone in January and we've already started documenting the expected changes. Thanks! |
During the upgrade to JEE9 and Spring 6.1, found some test issues that result in the following exception:
After some digging, it appears that MockCookie is calling a Servlet 6.0 API that does not exist in Servlet 5.0
As per Spring-Framework-Versions#javajakarta-ee-versions,
Spring Framework 6.1.x: Jakarta EE 9-10 (jakarta namespace)
mentions that Spring 6.1 is compliant is JEE9, however with this dependency for tests, it appears to be broken with requirement on
Servlet 6.0
I do NOT see any mentions of requiring Servlet 6.0 in the Spring-Framework-6.1-Release-Notes.
This is the commit that introduced dependency on Servlet 6.
Is this a deliberate requirement, or was it simply an oversight?
Is it feasible to keep Spring 6.1 fully compatible with JEE9 (including tests), ensuring that users won’t face the additional challenge of upgrading to the JEE10 ecosystem?
This approach would significantly reduce the burden on consumers, allowing them to continue their work without the added complexity of transitioning to a newer, potentially disruptive platform.
The text was updated successfully, but these errors were encountered: