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=16844>. 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=16844 MapDeserializer creates only HashMaps, throwing ClassCastException when assigning ------- Additional Comments From [EMAIL PROTECTED] 2003-02-18 01:15 ------- Actually, I think this might be easily fixable as follows: just think about the deserialization side, which is the problem. We're creating a HashMap in the deserializer, then trying to assign it to some field (either a bean field or a parameter) with a different type of Map type - is that accurate? If so I believe all we need to do here is make convert() able to convert HashMaps into arbitrary Maps as long as those Map-implementing classes have no- argument constructors: if (arg is a HashMap AND destClass implements Map) { Map newMap = (Map)destClass.newInstance(); ...iterate over HashMap plugging values into newMap... } If this would in fact solve the problem and anyone (Jim? :)) wants to do this, go for it.
