Skip to content

SpEL: extend set of characters allowed for an identifier [SPR-7100] #11760

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andy Clement opened SPR-7100 and commented

Currently the set of characters allowed for an identifier is (if i recall correctly) based on the Spring .net format. This is an alphanumeric followed any number of alphanumerics or underscores.

This is quite restrictive. Mark Fisher is considering using underscore to prefix identifiers used under SI to indicate those that are 'system managed' properties. So the minimum requirement here is to allow the first char to be an underscore. However, we should probably think about what it might mean to follow the java.lang.Character defined: isJavaIdentifierStart/isJavaIdentifierPart. If it doesn't interfere too much with lexing/parsing, we should look to support that format.


Affects: 3.0.2

Referenced from: commits f53621a, bf1a95c

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions