webwork/src/main/webwork/util ValueStack.java,1.51,1.52
| 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