Skip to content

Maven plugin does not set '-parameters' option when processing AOT code #49268

@mp911de

Description

@mp911de

AOT-generated code is currently compiled without parameter names. It would be useful to have parameters available for functionality that heavily relies on reflection.

In Spring Data's AOT repository query methods with SpEL we use reflection to provide a named variable map for resolution of parameters. AOT and reflective repositories use the same code paths and having parameters within bytecode would be a convenient way for our arrangement to leverage SpEL without additing further indirections to AOT-generated code.

Motivated by spring-projects/spring-data-relational#2245

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions