gemmellr commented on code in PR #5477:
URL: https://github.com/apache/activemq-artemis/pull/5477#discussion_r1934318200


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/ArtemisRbacInvocationHandler.java:
##########
@@ -136,15 +136,15 @@ public boolean canInvoke(String name, String 
operationName) {
 
    private void initializeFromFirstServerMBeanRegistration(Method method, 
Object[] args) {
       if (activeMQServer == null && method.getName().equals("registerMBean")) {
-         if (args != null && args[0] instanceof ActiveMQServerControlImpl) {
-            activeMQServer = ((ActiveMQServerControlImpl) args[0]).getServer();
+         if (args != null && args[0] instanceof ActiveMQServerControlImpl 
impl) {

Review Comment:
   impl -> control ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to