You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2025/11/30 07:29:06 UTC

(ofbiz-framework) branch trunk updated: Fixed: getClass() is called on instance of Class (OFBIZ-13321) #927

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

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 03d8160f16 Fixed: getClass() is called on instance of Class (OFBIZ-13321) #927
03d8160f16 is described below

commit 03d8160f163778d45407d3b3ece00f979ff0dee6
Author: Dmitry Kryukov <dk...@users.noreply.github.com>
AuthorDate: Sun Nov 30 10:29:02 2025 +0300

    Fixed: getClass() is called on instance of Class (OFBIZ-13321) #927
    
    Fixes call of getClass() on instance of Class in UtilObject::getObjectFromFactory. That completely erased the type
    
    Thanks: Dmitriy Kryukov
    
    Signed-off-by: Dmitry Kryukov <dk...@ya.ru>
---
 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
index 802ffa379d..a9b7ac2a0f 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
@@ -122,6 +122,6 @@ public final class UtilObject {
                 return instance;
             }
         }
-        throw new ClassNotFoundException(factoryInterface.getClass().getName());
+        throw new ClassNotFoundException(factoryInterface.getName());
     }
 }