[infinispan-issues] [JBoss JIRA] (ISPN-10620) BasicComponentRegistryImpl.getMBeanMetadata discards overloaded operations and does not prevent overriding

Nistor Adrian (Jira) issues at jboss.org
Tue Sep 17 12:20:00 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-10620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nistor Adrian updated ISPN-10620:
---------------------------------
    Description: 
The operations are held in a map keyed by name, so some overloaded operations like DefaultCahcheManager.startCache() and  DefaultCahcheManager.startCache(String cacheName) are basically discarded unintentionally.

Also, it should detect and prevent overriding annotations.

  was:
The operations are held in a map keyed by name, so some overloaded operations like DefaultCahcheManager.startCache() and  DefaultCahcheManager.startCache(String cacheName) are basically discarded unintentionally.

Also, the order of processing superclasses is wrong (reversed), so eventually overwritten operations are not correctly processed. The one in the superclass wins, so the overwrite is basically ignored.



> BasicComponentRegistryImpl.getMBeanMetadata discards overloaded operations and does not prevent overriding
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-10620
>                 URL: https://issues.jboss.org/browse/ISPN-10620
>             Project: Infinispan
>          Issue Type: Bug
>          Components: JMX, reporting and management
>    Affects Versions: 10.0.0.CR1
>            Reporter: Nistor Adrian
>            Assignee: Nistor Adrian
>            Priority: Major
>             Fix For: 10.0.0.CR3
>
>
> The operations are held in a map keyed by name, so some overloaded operations like DefaultCahcheManager.startCache() and  DefaultCahcheManager.startCache(String cacheName) are basically discarded unintentionally.
> Also, it should detect and prevent overriding annotations.



--
This message was sent by Atlassian Jira
(v7.13.5#713005)


More information about the infinispan-issues mailing list