-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
NoSuchMethodError can be thrown from Session.getCookie() due to binary incompatibilty #38589
Comments
The class was removed here. I'm not sure how we can fix this without introducing a new method for |
Perhaps we can reintroduce the inner class but keep it empty. |
We document that the property accessors aren't public API:
Given this, I'm not sure that we should do anything here. It would depend a lot on how disruptive/awkward it would be to restore compatibility. |
|
Do you have any further thoughts on this issue? I'm trying to decide what I can do to support the users using the library I support that's impacted by this issue. Thank you again! |
We talked about this today and we're going to put the class back in 3.2.x and look at reorganizing things in 4.x |
Spring Boot 3.2.0 breaks binary compatibility with previous versions of Spring Boot (ex, 3.1.6).
Given a class that invokes
org.springframework.boot.web.servlet.server.Session.getCookie()
, if that class is compiled against Spring Boot 3.1.6 then run with Spring Boot 3.2.0, an exception occurs.Example code:
When compiled and run against the same version of Spring Boot, it works fine. Compile against Spring Boot 3.1.6 then run against Spring Boot 3.2.0, this exception occurs:
The text was updated successfully, but these errors were encountered: