Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with class-based projections since Spring Framework 6.1.x #3725

Open
sondemar opened this issue Dec 20, 2024 · 0 comments
Open

Problem with class-based projections since Spring Framework 6.1.x #3725

sondemar opened this issue Dec 20, 2024 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@sondemar
Copy link

According to the Spring Framework issue, the LocalVariableTableParameterNameDiscoverer was completely removed. As a result, the Spring Data JPA project cannot recognize the parameters of constructors for class-based projections in DTO classes that do not include parameter names in the compiled bytecode (i.e., classes compiled without the -parameters flag).

When using such DTO classes from a third-party dependency JAR, the parameter names appear as arg0, arg1, etc. The DefaultParameterNameDiscoverer now only utilizes StandardReflectionParameterNameDiscoverer, which cannot handle these parameter names. Previously, a warning would have been logged for such cases.

I have prepared an example project to demonstrate the issue.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants