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

Update build.gradle to fix the warning 'No constructor parameter names discovered' from spring data #69

Merged

Conversation

jonnypark-code
Copy link
Contributor

Fix the issue

org.springframework.data.repository.query.ReturnedType.detectConstructorParameterNames:313 : No constructor parameter names discovered. Compile the affected code with '-parameters' instead or avoid its introspection

Description

Root cause:
Spring Data is trying to determine the names of constructor parameters for a projection or DTO, but it cannot find them. This usually happens because Java does not retain parameter names at runtime unless compiled with the -parameters option.

Changes Made

Update the gradle java compile to compile with -parameters

Fix the issue 
```
org.springframework.data.repository.query.ReturnedType.detectConstructorParameterNames:313 : No constructor parameter names discovered. Compile the affected code with '-parameters' instead or avoid its introspection
```
@jonnypark-code jonnypark-code changed the title Update build.gradle Update build.gradle to fix the warning 'No constructor parameter names discovered' from spring data Feb 9, 2025
@haiphucnguyen haiphucnguyen merged commit 61ca442 into flowinquiry:main Feb 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants