This is an automated email from the ASF dual-hosted git repository.
jinwoo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 4b7f7bfb64 GEODE-10533: Fix Deprecated APIs in geode-gfsh Module
(#8001)
4b7f7bfb64 is described below
commit 4b7f7bfb64c8ce0b63b3fd3e07b28b6831a494d1
Author: Ventsislav Marinov <[email protected]>
AuthorDate: Tue Apr 7 15:37:10 2026 -0400
GEODE-10533: Fix Deprecated APIs in geode-gfsh Module (#8001)
Co-authored-by: VENTSISLAV MARINOV <[email protected]>
---
.../internal/cli/functions/CreateAsyncEventQueueFunction.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/CreateAsyncEventQueueFunction.java
b/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/CreateAsyncEventQueueFunction.java
index eac61685a6..c156c1ec08 100644
---
a/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/CreateAsyncEventQueueFunction.java
+++
b/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/CreateAsyncEventQueueFunction.java
@@ -14,6 +14,7 @@
*/
package org.apache.geode.management.internal.cli.functions;
+import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -152,11 +153,12 @@ public class CreateAsyncEventQueueFunction extends
CliFunction<CacheConfig.Async
}
private Object newInstance(String className)
- throws ClassNotFoundException, IllegalAccessException,
InstantiationException {
+ throws ClassNotFoundException, IllegalAccessException,
InstantiationException,
+ NoSuchMethodException, InvocationTargetException {
if (Strings.isNullOrEmpty(className)) {
return null;
}
- return ClassPathLoader.getLatest().forName(className).newInstance();
+ return
ClassPathLoader.getLatest().forName(className).getDeclaredConstructor().newInstance();
}
}