svn commit: r682395 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java

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

svn commit: r682395 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java

doogie-3
Author: doogie
Date: Mon Aug  4 07:16:15 2008
New Revision: 682395

URL: http://svn.apache.org/viewvc?rev=682395&view=rev
Log:
Fix generication of Iterate.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java?rev=682395&r1=682394&r2=682395&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java Mon Aug  4 07:16:15 2008
@@ -44,12 +44,12 @@
 
     protected List<MethodOperation> subOps = FastList.newInstance();
 
-    protected ContextAccessor<GenericValue> entryAcsr;
+    protected ContextAccessor<Object> entryAcsr;
     protected ContextAccessor<Object> listAcsr;
 
     public Iterate(Element element, SimpleMethod simpleMethod) {
         super(element, simpleMethod);
-        this.entryAcsr = new ContextAccessor<GenericValue>(element.getAttribute("entry-name"));
+        this.entryAcsr = new ContextAccessor<Object>(element.getAttribute("entry-name"));
         this.listAcsr = new ContextAccessor<Object>(element.getAttribute("list-name"));
 
         SimpleMethod.readOperations(element, subOps, simpleMethod);
@@ -62,7 +62,7 @@
             return true;
         }
 
-        GenericValue oldEntryValue = entryAcsr.get(methodContext);
+        Object oldEntryValue = entryAcsr.get(methodContext);
         Object objList = listAcsr.get(methodContext);
         if (objList instanceof EntityListIterator) {
             EntityListIterator eli = (EntityListIterator) objList;
@@ -93,7 +93,7 @@
                 return false;
             }
         } else {
-            Collection<GenericValue> theList = UtilGenerics.checkList(objList);
+            Collection<Object> theList = UtilGenerics.checkList(objList);
 
             if (theList == null) {
                 if (Debug.infoOn()) Debug.logInfo("List not found with name " + listAcsr + ", doing nothing: " + rawString(), module);
@@ -104,7 +104,7 @@
                 return true;
             }
 
-            for (GenericValue theEntry: theList) {
+            for (Object theEntry: theList) {
                 entryAcsr.put(methodContext, theEntry);
 
                 if (!SimpleMethod.runSubOps(subOps, methodContext)) {