Skip to content

Restrict SpringVersion.getVersion() to "major.minor.patch" format #36785

Description

@jhoeller

SpringVersion.getVersion() exposes the raw implementation version field from the jar manifest. Since this may have additional components after the patch version but some callers (such as Thymeleaf) do not expect that, let's restrict it to a "major.minor.patch" format for the purpose of such runtime version checks.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions