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

6.0.11版本,请求接口时警告:Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection #31094

Closed
dengchufeng opened this issue Aug 23, 2023 · 2 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@dengchufeng
Copy link

【版本】
你们好,版本如下,springframework:6.0.11,springboot:3.0.9

【问题】
项目启动,并且请求接口时,将会报出警告:Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.zy.base.controller.NwlBaseController

【示例】
1、接口和版本
image
2、当项目启动之后,请求接口时,会进入到“LocalVariableTableParameterNameDiscoverer”类的“inspectClass”方法,从而抛出警告
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 23, 2023
@bclozel
Copy link
Member

bclozel commented Aug 23, 2023

See #29531 as for why you're getting this log warning and see #29559 as this strategy has been removed from the next minor version.
Please compile your Java sources with the common Java 8+ -parameters flag for parameter name retention (instead of relying on the -debug compiler flag) in order to be compatible with StandardReflectionParameterNameDiscoverer.

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2023
@bclozel bclozel added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 23, 2023
@dengchufeng
Copy link
Author

See #29531 as for why you're getting this log warning and see #29559 as this strategy has been removed from the next minor version. Please compile your Java sources with the common Java 8+ -parameters flag for parameter name retention (instead of relying on the -debug compiler flag) in order to be compatible with StandardReflectionParameterNameDiscoverer.

原来是这样,Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants