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

Using deprecated '-debug' fallback for parameter name resolution #2893

Closed
sergey-morenets opened this issue Mar 29, 2023 · 6 comments
Closed
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@sergey-morenets
Copy link

Hi

We've migrated from Spring Boot 2.7.x to Spring Boot 3.0.5 and observed a lot of warning messages in the console:

22:38:33.661 WARN - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: demo.UserRepository

This warning is printed for some Spring Data repository interfaces (but not for all). It seems this issue was already fixed in Spring 6.0.4 - spring-projects/spring-framework#29612

We're using Spring 6.0.7 now but issue still reproduces.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 29, 2023
@schauder
Copy link
Contributor

The warning itself is a valid one, or are you using -parameters as instructed by the warning?

@schauder schauder added the status: waiting-for-feedback We need additional information before we can continue label Mar 29, 2023
@sergey-morenets
Copy link
Author

Hi

@schauder

Thank you for the quick response. No, I don't use any Spring Boot or JVM arguments.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Mar 29, 2023
@schauder
Copy link
Contributor

If you are using Spring Boot you shouldn't need any special configuration.
If you are using Spring Boot please provide a reproducer.

Without Spring Boot you need to use that flag.
See https://stackoverflow.com/a/31846371/66686

@schauder schauder closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
@schauder schauder added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Mar 30, 2023
@vishalsingh2972
Copy link

@schauder @sergey-morenets Getting similar warning after trying everything....any resolution?

Apr 14, 2023 1:09:54 AM org.springframework.core.LocalVariableTableParameterNameDiscoverer inspectClass WARNING: Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: demo.LoggingAspect

I am currently using Spring 6.0.7

@sergey-morenets
Copy link
Author

Hi @vishalsingh2972

Unfortunately I have no solution. I see this warning even if run my application using Spring Boot plugin.

@schauder
Copy link
Contributor

If the problem persists I recommend creating a reproducer and filing an issue against Spring Framework or Spring Boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

4 participants