You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/24 21:06:10 UTC

[jira] Closed: (STR-2161) DynaActionForm.toString() crashes for Integer-keyed Maps

     [ http://issues.apache.org/struts/browse/STR-2161?page=all ]
     
David Evans closed STR-2161:
----------------------------

    Resolution: Fixed

> DynaActionForm.toString() crashes for Integer-keyed Maps
> --------------------------------------------------------
>
>          Key: STR-2161
>          URL: http://issues.apache.org/struts/browse/STR-2161
>      Project: Struts Action 1
>         Type: Bug

>   Components: Action
>     Versions: 1.1 RC2
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Tim
>     Assignee: David Evans
>      Fix For: 1.2 Family

>
> When a DynaActionForm has a property which is a Map that uses Integers as its 
> keys, the toString() method throws a ClassCastException at line 552.
> My revision of DynaActionForm.java is 1.8.  The line that throws the exception 
> is "String key = (String) keys.next();" but an Integer cannot be cast to a 
> String (I assume several others also cannot be cast to String).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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