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
Deprecated fallback warning with Spring 6.0.5 #2630
Comments
Thanks for drafting this, @nils-christian. I'll do some investigation into the matter today/tomorrow. I'll keep you posted. |
I haven't looked into it myself yet but I did notice with 3.0.3 (Spring 6.0.6), the warning is also there. |
For some reason, Spring Framework logs the following message open usages of the static factory method of the SpringPrototypeAggregateFactory: LocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.axonframework. spring.eventsourcing.SpringPrototypeAggregateFactory Although none of the methods are marked deprecated on the BeanDefinition API, apparently this is undesired behavior. Regardless, we can easily use a Supplier<SpringPrototypeAggregateFactory> in this case, since the required properties for the factory are known upfront. #2630
After some digging, I spotted that the warning is introduced by the But, to answer your question, @nils-christian, I am honestly uncertain whether the warn message is warranted at all. |
I am closing this issue since it's resolved through pull request #2637. |
This will be resolved in Spring: spring-projects/spring-framework#30103 |
Hi,
When using Axon with Spring Boot 3.0.3 (and thus Spring 6.0.5), a warning occurs. It should be checked whether this is a false positive or whether someone has to do something.
Basic information
Steps to reproduce
Create a project based on the 3.0.3 Spring Boot starter and include Axon. Create a minimal Axon Aggregate.
Expected behaviour
No warning should occur.
Actual behaviour
A warning occurs:
I am aware that there has been a bug in Spring 6 (see here), but this has been fixed in 6.0.3 and the issue occurs in 6.0.5 for the SpringPrototypeAggregateFactory.
The text was updated successfully, but these errors were encountered: