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 b1c611b Fixed: Bypass Java GString to String conversion in ObjectType::simpleTypeOrObjectConvert (OFBIZ-12182) b1c611b is described below commit b1c611bebd592c70b2b3f7954b4c0497d8b7995e Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Fri Feb 19 09:28:53 2021 +0100 Fixed: Bypass Java GString to String conversion in ObjectType::simpleTypeOrObjectConvert (OFBIZ-12182) Follows https://markmail.org/message/azn7e4g2rbpo7tvj --- .../base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java index 3ef59d0..442f648 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/ObjectType.java @@ -281,13 +281,12 @@ public class ObjectType { if (obj == null || UtilValidate.isEmpty(type) || "Object".equals(type) || "java.lang.Object".equals(type)) { return obj; } - if ("PlainString".equals(type)) { + if ("PlainString".equals(type) + || ("org.codehaus.groovy.runtime.GStringImpl".equals(obj.getClass().getName()) && "String".equals(type))) { return obj.toString(); } if (obj instanceof Node) { Node node = (Node) obj; - - String nodeValue = node.getTextContent(); if (nodeValue == null) {