Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-276


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WW-276
    Summary: ValueStack tries to get property editor when not needed
       Type: Bug

     Status: Assigned
   Priority: Major

    Project: WebWork
 Components: 
             Value Stack
   Fix Fors:
             1.3.1
   Versions:
             1.3

   Assignee: Scott Farquhar
   Reporter: Scott Farquhar

    Created: Wed, 27 Aug 2003 7:28 PM
    Updated: Wed, 27 Aug 2003 7:28 PM

Description:
The valuestack currently tries to find the appropriate method given a method name & 
certain types of parameters.

This works well.  However, the following code will not work:


public class OutlookDate {

public void getSomething(Date date) {}

}

public Timestamp getTimestamp() {
 return new Timestamp(System.currentTimeMillis());
}

<webwork:property value="@outlookDate/something(@outlookDate/timestamp)" />

This is because ValueStack tries to look up a property editor of the type of the class 
does not exactly match the time of the parameter.  

This should be if the type does not match OR is not assignable from the value.

Line 409 of ValueStack should be changed from:

(!parameterClass.equals(parami.getClass())) {


to 

(!parameterClass.equals(parami.getClass()) && 
!parameterClass.isAssignableFrom(parami.getClass())) {




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to