webwork/src/main/webwork/util ValueStack.java,1.51,1.52

[email protected]
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-serv14501/src/main/webwork/util

Modified Files:
	ValueStack.java 
Log Message:
Fix Valuestack to work for methods with parameters that are subclasses
of the method signature (eg passing java.sql.Timestamp for 'method(Date
date)').

Fixes WW-276


Index: ValueStack.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/util/ValueStack.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- ValueStack.java	3 Jul 2003 13:57:43 -0000	1.51
+++ ValueStack.java	28 Aug 2003 00:34:07 -0000	1.52
@@ -406,7 +406,7 @@
                                     break objectWalk;
                                  }
                               }
-                              else if (!parameterClass.equals(parami.getClass())) {
+                              else if (!parameterClass.equals(parami.getClass()) && !parameterClass.isAssignableFrom(parami.getClass())) {
                                  // Get property editor
                                  PropertyEditor pe = BeanUtil.getPropertyEditor(parameterClass);
                                  // Convert value




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.