Skip to content

SpEL varargs behavior changed after upgrading to Spring Framework 6.1.11 #33643

@prathmeshpethkar

Description

@prathmeshpethkar

Overview

We noticed the value of the acceptedRoles changed.

With spring boot version 3.3.1 and before the size of the acceptedRoles list is 0, but after upgrading to 3.3.2 and above the value returned is 1.

TestController.java

@Value("#{T(java.util.Arrays).asList('${person.acceptedRoles}')}")
private List<String> acceptedRoles;

application.properties

person.acceptedRoles=

demo.zip

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions