Login  Register

svn commit: r732173 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java

Posted by adrianc on Jan 06, 2009; 11:38pm
URL: http://ofbiz.116.s1.nabble.com/svn-commit-r732173-ofbiz-trunk-framework-base-src-org-ofbiz-base-util-string-UelUtil-java-tp218370.html

Author: adrianc
Date: Tue Jan  6 15:38:47 2009
New Revision: 732173

URL: http://svn.apache.org/viewvc?rev=732173&view=rev
Log:
Fixed a problem where the BSH interpreter was throwing exceptions on a variable that had periods in its name.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java?rev=732173&r1=732172&r2=732173&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelUtil.java Tue Jan  6 15:38:47 2009
@@ -34,7 +34,7 @@
 /** Implements the Unified Expression Language (JSR-245). */
 public class UelUtil {
     protected static final String module = UelUtil.class.getName();
-    public static final String localizedMapLocaleKey = LocalizedMap.class.getName() + ".locale";
+    public static final String localizedMapLocaleKey = LocalizedMap.class.getName() + "_locale".replace(".", "_");
     protected static final ExpressionFactory exprFactory = JuelConnector.newExpressionFactory();
     protected static final ELResolver defaultResolver = new ExtendedCompositeResolver() {
         {