This commit is contained in:
deep-learning-dynamo 2023-07-13 10:01:01 +02:00
parent c451a220d9
commit 88710c5504
1 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,11 @@ public class AiServices<T> {
private final ExecutorService executor = Executors.newCachedThreadPool();
@Override
public Object invoke(Object proxy, Method method, Object[] args) {
public Object invoke(Object proxy, Method method, Object[] args) throws Exception {
if (method.getDeclaringClass() == Object.class) {
return method.invoke(this, args);
}
validateParameters(method);