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

Spring 6.0.1 and newer requires/prefers compilation with "-parameters" #4258

Closed
BSkogseth opened this issue Dec 12, 2022 · 1 comment
Closed

Comments

@BSkogseth
Copy link

BSkogseth commented Dec 12, 2022

When starting an application with Spring 6.0.2, Spring Batch 5.0.0 and Spring Boot 3.0.0, Spring logs 86 warning messages that look like this:

12:58:39.789 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.integration.launch.JobLaunchingMessageHandler
12:58:40.083 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.configuration.support.GenericApplicationContextFactory
12:58:40.386 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.configuration.annotation.JobBuilderFactory
12:58:40.426 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.configuration.annotation.StepBuilderFactory
12:58:43.080 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.job.flow.support.state.StepState
12:58:43.087 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.job.flow.support.StateTransition
12:58:43.096 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.job.flow.support.state.EndState
12:58:43.105 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.configuration.xml.JobParserJobFactoryBean
12:58:43.773 [main] WARN  o.s.c.LocalVariableTableParameterNameDiscoverer - Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.batch.core.job.flow.support.state.DecisionState

LocalVariableTableParameterNameDiscoverer is marked as deprecated for removal. This means that it might be removed in Spring 6.1.

I got several similar warning messages related to my own code as well, these went away when adding the -parameters flag in my maven-compiler-plugin configuration. Only the messages related to Spring Batch remain.

To resolve this, could you add the -parameters flag to your build for a later release?

@BSkogseth BSkogseth added the status: waiting-for-triage Issues that we did not analyse yet label Dec 12, 2022
@fmbenhassine
Copy link
Contributor

Thank you for raising this! I will plan it for v5.0.1.

@fmbenhassine fmbenhassine added in: build type: enhancement and removed status: waiting-for-triage Issues that we did not analyse yet labels Jan 12, 2023
@fmbenhassine fmbenhassine added this to the 5.0.1 milestone Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants