Skip to content

Increase scope of regex pattern cache for the SpEL matches operator #30140

Closed
@sbrannen

Description

@sbrannen

The pattern cache for the SpEL matches operator only applies to expressions such as the following where the same matches operator is invoked multiple times with different input:

map.keySet().?[#this matches '.+xyz']

The pattern cache does not apply to expressions such as the following where the same pattern (.+xyz) is used in multiple matches operations:

foo matches '.+xyz' AND bar matches '.+xyz'

We should increase the scope of the regex pattern cache for the SpEL matches operator so that the cache can be reused for all matches operations for the given parser.

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