From 61b6556473180d9a8d65a783178b5ddc86a5be8b Mon Sep 17 00:00:00 2001 From: itaiag Date: Thu, 16 Nov 2017 16:32:52 +0200 Subject: [PATCH] wip --- .../paramproviders/GenericObjectParameterProvider.java | 3 ++- .../paramproviders/ObjectArrayParameterProvider.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jsystem-core-projects/jsystemApp/src/main/java/jsystem/extensions/paramproviders/GenericObjectParameterProvider.java b/jsystem-core-projects/jsystemApp/src/main/java/jsystem/extensions/paramproviders/GenericObjectParameterProvider.java index aaecf77a..706714e8 100644 --- a/jsystem-core-projects/jsystemApp/src/main/java/jsystem/extensions/paramproviders/GenericObjectParameterProvider.java +++ b/jsystem-core-projects/jsystemApp/src/main/java/jsystem/extensions/paramproviders/GenericObjectParameterProvider.java @@ -20,7 +20,6 @@ import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.Properties; -import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; @@ -82,6 +81,8 @@ public Object getFromString(String stringRepresentation) throws Exception { String propertiesString = stringRepresentation.substring(classEndIndex + 1); Properties properties = new Properties(); try { + // Since we don't want to lose the backslashes, we need to replace each of the single backslashes with + // double backslashes before loading the string to the properties object propertiesString = propertiesString.replaceAll("(?