You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/07/09 09:33:37 UTC

DO NOT REPLY [Bug 21428] New: - String type page propery results in ClassCastException

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=21428>.
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=21428

String type page propery results in ClassCastException

           Summary: String type page propery results in ClassCastException
           Product: Struts
           Version: 1.1 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: michael_j_muller@yahoo.com


i created a dynamic form bean that had a propery named "page" and i set the type
to be "java.lang.String".  i got a ClassCastException on line 141 of
DynaValidatorForm.java:

            this.page = ((Integer) props.get("page")).intValue();

it would have been nice to get an error message rather than a stack dump.

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