You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ve...@apache.org on 2026/04/07 02:17:07 UTC

(geode) branch GEODE-10533-new created (now 2133ec4452)

This is an automated email from the ASF dual-hosted git repository.

ventsi pushed a change to branch GEODE-10533-new
in repository https://gitbox.apache.org/repos/asf/geode.git


      at 2133ec4452 GEODE-10533: Fix Deprecated APIs in geode-gfsh Module

This branch includes the following new commits:

     new 2133ec4452 GEODE-10533: Fix Deprecated APIs in geode-gfsh Module

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(geode) 01/01: GEODE-10533: Fix Deprecated APIs in geode-gfsh Module

Posted by ve...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ventsi pushed a commit to branch GEODE-10533-new
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 2133ec445291bcd9974342573533c1fec7e4655a
Author: VENTSISLAV MARINOV <ve...@sas.com>
AuthorDate: Mon Apr 6 22:16:29 2026 -0400

    GEODE-10533: Fix Deprecated APIs in geode-gfsh Module
---
 .../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();
   }
 }