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_r149360101
 
 

 ##########
 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:
   ok, stupifd mistake here; i added the class self to the list of parameters :(

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to