velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1763041 - /velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java
Date Sun, 02 Oct 2016 08:26:18 GMT
Author: cbrisson
Date: Sun Oct  2 08:26:18 2016
New Revision: 1763041

URL: http://svn.apache.org/viewvc?rev=1763041&view=rev
Log:
[tools] bugfix: apply ValueParser readOnly option on submaps

Modified:
    velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java

Modified: velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java?rev=1763041&r1=1763040&r2=1763041&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java
(original)
+++ velocity/tools/trunk/velocity-tools-generic/src/main/java/org/apache/velocity/tools/generic/ValueParser.java
Sun Oct  2 08:26:18 2016
@@ -554,7 +554,10 @@ public class ValueParser extends Convers
         }
         else
         {
-            return new ValueParser(values);
+            ValueParser ret = new ValueParser(values);
+            /* honnor readOnly option on submaps */
+            ret.setReadOnly(getReadOnly());
+            return ret;
         }
     }
 



Mime
View raw message