This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 6d1622129b Fixed: getClass() is called on instance of Class
(OFBIZ-13321) #927
6d1622129b is described below
commit 6d1622129b5e3208598bb95b47cc56f1668ab09c
Author: Dmitry Kryukov <[email protected]>
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 <[email protected]>
---
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 ad1de2f597..6eba60a267 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
@@ -121,6 +121,6 @@ public final class UtilObject {
return instance;
}
}
- throw new
ClassNotFoundException(factoryInterface.getClass().getName());
+ throw new ClassNotFoundException(factoryInterface.getName());
}
}