You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: