DaanHoogland commented on a change in pull request #2290: WIP: add track id to 
async api calls
URL: https://github.com/apache/cloudstack/pull/2290#discussion_r148764980
 
 

 ##########
 File path: server/src/com/cloud/api/ApiServer.java
 ##########
 @@ -540,7 +540,7 @@ public String handleRequest(final Map params, final String 
responseType, final S
                         throw new CloudRuntimeException("No APICommand 
annotation found for class " + cmdClass.getCanonicalName());
                     }
 
-                    BaseCmd cmdObj = (BaseCmd)cmdClass.newInstance();
+                    BaseCmd cmdObj = 
(BaseCmd)cmdClass.getConstructor(cmdClass).newInstance();
 
 Review comment:
   it is deprecated in version 9.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to