You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2008/05/04 07:34:21 UTC

svn commit: r653180 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Author: lektran
Date: Sat May  3 22:34:21 2008
New Revision: 653180

URL: http://svn.apache.org/viewvc?rev=653180&view=rev
Log:
Not really sure why but calling simple methods in other files wasn't working with the class loader that was being passed

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java?rev=653180&r1=653179&r2=653180&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Sat May  3 22:34:21 2008
@@ -629,7 +629,7 @@
             } else if (methodOperation instanceof CallSimpleMethod) {
                 CallSimpleMethod csm = (CallSimpleMethod) methodOperation;
                 try {
-                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(methodOperations.getClass().getClassLoader());
+                    SimpleMethod calledMethod = csm.getSimpleMethodToCall(null);
                     if (calledMethod == null) {
                         Debug.logWarning("Could not find simple-method [" + csm.getMethodName() + "] in [" + csm.getXmlResource() + "] from the SimpleMethod [" + csm.getSimpleMethod().getMethodName() + "] in [" + csm.getSimpleMethod().getFromLocation() + "]", module);
                     } else {