Skip to content

LocalVariableTableParameterNameDiscoverer logs many warnings with Hibernate validation #29563

@akefirad

Description

@akefirad

Affects: 6.0.1

Having a small simple Spring Boot application with Validator dependency, adding a ConfigurationProperties class with @Validated logs many warning like below:

...
2022-11-23T20:36:30.230+01:00  WARN 10246 --- [  restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead: public java.lang.String(java.lang.StringBuilder)
2022-11-23T20:36:30.231+01:00  WARN 10246 --- [  restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead: public java.lang.String(char[])
2022-11-23T20:36:30.231+01:00  WARN 10246 --- [  restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead: java.lang.String(char[],int,int,java.lang.Void)
2022-11-23T20:36:30.231+01:00  WARN 10246 --- [  restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead: java.lang.String(char[],int,int,java.lang.Void)
2022-11-23T20:36:30.231+01:00  WARN 10246 --- [  restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead: java.lang.String(char[],int,int,java.lang.Void)
...

I'm not entirely sure what it's saying. The executable is not my code, it's the standard library. Anyway, adding javaParameters = true to the build script doesn't help.
I started seeing the logs after refreshing the snapshot version of Spring Boot (but Spring Core is v6.0.1). There was no issue before.
sample-project

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions