-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed
Labels
type: regressionA regression from a previous releaseA regression from a previous release
Milestone
Description
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:
import org.springframework.boot.autoconfigure.web.ServerProperties;
public class ExampleService {
public ExampleService(ServerProperties serverProperties) throws Exception {
// get the session cookie name from configuration
final String sessionCookieName = Optional.ofNullable(serverProperties.getServlet().getSession().getCookie().getName()).orElse("SESSION");
}
}
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:
Caused by: java.lang.NoSuchMethodError: 'org.springframework.boot.web.servlet.server.Session$Cookie org.springframework.boot.web.servlet.server.Session.getCookie()'
Metadata
Metadata
Assignees
Labels
type: regressionA regression from a previous releaseA regression from a previous release