Skip to content

Improve names of classes generated by the SpEL compiler #32497

@sbrannen

Description

@sbrannen

Overview

After making this #29548 (comment), I decided it's worthwhile to improve the names of classes generated by the SpEL compiler in any case.

Status Quo

The SpEL compiler currently generates classes in a package named spel with names following the pattern Ex#, where # is an index starting with 2 (which was simply an oversight).

This results in class names such as:

  • spel.Ex2
  • spel.Ex3
  • etc.

Goal

Generate classes in a package named org.springframework.expression.spel.generated with names following the pattern CompiledExpression#####, where ##### is a 0-padded counter starting with 00001.

This results in class names such as:

  • org.springframework.expression.spel.generated.CompiledExpression00001
  • org.springframework.expression.spel.generated.CompiledExpression00002
  • etc.

Related Issues

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