svn commit: r958270 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r958270 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java

doogie-3
Author: doogie
Date: Sat Jun 26 19:40:16 2010
New Revision: 958270

URL: http://svn.apache.org/viewvc?rev=958270&view=rev
Log:
Fix bug forwarded by BJ, from the user list; namely,
FastList.subList().add(Object) throws UnsupportedOperationException.
This commit should be undone when javolution is fixed.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java?rev=958270&r1=958269&r2=958270&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/template/FreeMarkerWorker.java Sat Jun 26 19:40:16 2010
@@ -499,7 +499,9 @@ public class FreeMarkerWorker {
             if (o instanceof Map) {
                 context.put(key, UtilMisc.makeMapWritable(UtilGenerics.checkMap(o)));
             } else if (o instanceof List) {
-                context.put(key, UtilMisc.makeListWritable(UtilGenerics.checkList(o)));
+                List<Object> list = new ArrayList<Object>();
+                list.addAll(UtilGenerics.checkList(o));
+                context.put(key, list);
             } else {
                 context.put(key, o);
             }