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

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new aa9bf423 EMPIREDB-410 ClassUtils fix.
aa9bf423 is described below

commit aa9bf42315ee6cbf60df6adafd74f8e815a7b4c6
Author: Rainer Döbele <[email protected]>
AuthorDate: Tue Jun 18 16:39:18 2024 +0200

    EMPIREDB-410
    ClassUtils fix.
---
 empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java 
b/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
index f0739c6d..6042dfdf 100644
--- a/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
+++ b/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
@@ -345,8 +345,10 @@ public final class ClassUtils
         catch (NoSuchFieldException e)
         {   // try superclass
             clazz = clazz.getSuperclass();
-            if (clazz!=null && !clazz.equals(java.lang.Object.class))
+            if (clazz!=null && !clazz.equals(java.lang.Object.class)) {
                 setPrivateFieldValue(clazz, object, property, value);
+                return;
+            }
             // not found
             log.error("Field \""+property+"\" not found on class 
"+clazz.getName());
             throw new InternalException(e);

Reply via email to