Skip to content

Dependency on Servlet 4.0 in spring-test makes it challenging to have Servlet 3.1 at runtime #26555

Closed
@iay

Description

@iay

Spring Framework 5.x is documented as requiring only Servlet 3.1 (EE7). However, a recent change (commit f22e2ac by @rstoyanchev, included in 5.3.4) introduces a reference to javax.servlet.http.HttpServletMapping into MockHttpServletRequest.

The referenced API is part of Servlet 4.0 (EE8) and is not present in Servlet 3.1.

It seems extremely unlikely that a dependency change to a new major version of the Servlet spec was intentionally introduced as part of a patch release of Spring Framework.

If I am not misunderstanding something here, it seems like this would need to be reverted.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions