-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
MBeanExporter
produces "Using deprecated '-debug' fallback for parameter name resolution..." warnings
#31171
Comments
Have you tried compiling your application with the |
MBeanExporter
produces "Using deprecated '-debug' fallback for parameter name resolution..." warnings
Hello=) yes, sure. And it works out. With this solution I just have a feeling, that it is not a proper solution, but a workaround to push the warning away...maybe I am wrong here |
Thanks for the confirmation. Closing this issue as a result.
It's not a workaround. It's the appropriate action to take. The Furthermore, |
@sbrannen got it, thank you!! |
I have a bean that implements
NotificationPublisherAware
in order to send JMX notifications.I put then this bean to
MBeanExporter
's Bean Map:In this way created
MBeanExporter
bean then tries to prepare myjmxNotificationSender
. Among others exporter invokescreateAndConfigureMBean
method, which in turn usesMBeanInfoAssembler
to scanjmxNotificationSender
to obtain some information. I could trace down, thatAbstractReflectiveMBeanInfoAssembler
as an implementation is used here. ThisAbstractReflectiveMBeanInfoAssembler
invokesgetOperationParameters
method, which actually causes the warning since it discovers method parameters (introspection).Will this issue somehow be handled in the future?
Tested with Spring Framework 6.0.9 and Java 17
The text was updated successfully, but these errors were encountered: