Skip to content

Unnecessary parameter name introspection for constructor-arg resolution (leading to LocalVariableTableParameterNameDiscoverer warnings) #29912

Closed as not planned
@jloisel

Description

@jloisel
[http-nio-8090-exec-7] WARN org.springframework.core.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.octoperf.analysis.rest.server.controller.BenchReportsController
[http-nio-8090-exec-1] WARN org.springframework.core.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.octoperf.design.rest.spring.ProjectFilesController
[http-nio-8090-exec-2] WARN org.springframework.core.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.octoperf.analysis.rest.server.controller.GraphsController
[http-nio-8090-exec-4] WARN org.springframework.core.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: com.octoperf.analysis.rest.server.controller.MetricsController

Using Spring Boot 3.0.2 with Spring 6.0.4.

Example Controller:

@RestController
@RequestMapping("/analysis/bench-reports")
@AllArgsConstructor(access = PACKAGE)
@FieldDefaults(level = PRIVATE, makeFinal = true)
class BenchReportsController extends AbstractUserCrudController<BenchReport> {
  @NonNull
  BenchReportCrudService benchReports;
....
}

We don't use any parameter name in autowired constructors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comin: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions