cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] DaanHoogland commented on a change in pull request #2290: WIP: add track id to async api calls
Date Thu, 01 Jan 1970 00:00:00 GMT
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, stupid 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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message