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 36a980c501 Fixed: Reducing scope of variables in org.apache.ofbiz.base
package (OFBIZ-10478)
36a980c501 is described below
commit 36a980c50149d9c630b7aad6c6e649368e1ad42b
Author: Jacques Le Roux <[email protected]>
AuthorDate: Tue Sep 27 15:56:58 2022 +0200
Fixed: Reducing scope of variables in org.apache.ofbiz.base package
(OFBIZ-10478)
Reverts
- private static String replaceFirst(String str1, String str2, String
str3) {
+ public static String replaceFirst(String str1, String str2, String
str3) {
Error:
Error while initializing UelFunctions.Functions instance
java.lang.NoSuchMethodException:
org.apache.ofbiz.base.util.string.UelFunctions.replaceFirst(java.lang.String,
java.lang.String, java.lang.String)
I hope this is the reason why Builbot reports that testIntegration has
error/s
when actually there is none locally and even none in the site report.
Actually it's a runtime error
---
.../src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
index 2900952878..185b636d2a 100644
---
a/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
+++
b/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
@@ -288,7 +288,7 @@ public class UelFunctions {
return str1.replaceAll(str2, str3);
}
- private static String replaceFirst(String str1, String str2, String str3) {
+ public static String replaceFirst(String str1, String str2, String str3) {
if (null == str1) return null;
return StringUtils.replaceOnce(str1, str2, str3);
}