Skip to content

MBeanExporter produces "Using deprecated '-debug' fallback for parameter name resolution..." warnings #31171

Closed as not planned
@Sebottenhof99

Description

@Sebottenhof99

I have a bean that implements NotificationPublisherAware in order to send JMX notifications.

I put then this bean to MBeanExporter's Bean Map:

 Map<String, Object> beans = new HashMap<>();
    String key =  someName;
    beans.put(key, jmxNotificationSender);
    exporter.setBeans(beans);

In this way created MBeanExporter bean then tries to prepare my jmxNotificationSender. Among others exporter invokes createAndConfigureMBean method, which in turn uses MBeanInfoAssembler to scan jmxNotificationSender to obtain some information. I could trace down, that AbstractReflectiveMBeanInfoAssembler as an implementation is used here. This AbstractReflectiveMBeanInfoAssembler invokes getOperationParameters 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)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