You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/25 08:04:10 UTC

DO NOT REPLY [Bug 19308] New: - setter method with different types

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19308>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19308

setter method with different types

           Summary: setter method with different types
           Product: Tomcat 4
           Version: 4.0.6 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: stefanescu.adrian@ssi-schaefer.ro


Example:
A custom tag in JSP has an attribute pos="10"
the setter in java is:
public void setPos(String sPos)
{
 this.nPos = (new Integer(sPos)).intValue();
}
and the getter
public int getPos() 
{
 return this.nPos;
}

This works well for sometime until one day Tomcat throws an Exception because 
the method setPos(int) was called. Then the setter setPos(int) must be created

If this is not a bug please tell me how can I find out what setter will Tomcat 
call

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org