webwork/src/main/webwork/util ValueStack.java,1.54,1.55

[email protected] Mon, 17 Nov 2003 15:49:27 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/util
In directory sc8-pr-cvs1:/tmp/cvs-serv9586

Modified Files:
	ValueStack.java 
Log Message:
Make it possible to call methods without any parameters

Index: ValueStack.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/util/ValueStack.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- ValueStack.java	17 Nov 2003 00:55:47 -0000	1.54
+++ ValueStack.java	17 Nov 2003 23:49:25 -0000	1.55
@@ -185,7 +185,7 @@
       // The current stack pointer, and the current object,
       int stackIdx = 0;
       Object value;
-
+      
       /////////////////////////////////////////////////////////////////////////
       // evaluate the first element of the expression to see where to
       // get the requested value.  These should be quick and easy objects
@@ -382,8 +382,7 @@
                         params = new Object[vsize];
                         for(int i=0; i < vsize; i++)
                         {
-//                           Object param = findValue((Query) pValueList.get(i));
-                           Object param = findValue((String) pValueList.get(i));
+                           Object param = findValue((Query) pValueList.get(i));
                            params[i] = param;
                         }
 
@@ -427,10 +426,7 @@
                               }
                            }
                         }
-                        //log.debug("METHOD: trying call: " + segment.getId() + " param: " + params);
-
                         value = target.getMethod().invoke(value, params);
-
                      } catch (IllegalArgumentException e) {
                         log.error("Illegal parameters invoking " + value.getClass() + "." + target.getMethod().getName() + "(" +Arrays.asList(getParameterClasses(params)) + ")");
                      } catch (Exception e) {




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl