axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@us.ibm.com>
Subject RE: DO NOT REPLY [Bug 16844] - MapDeserializer creates only HashMaps, throwing ClassCastException when assigning
Date Tue, 18 Feb 2003 01:35:49 GMT
Likely story.  :-)

Anyway, I'm done filling people's inboxes for now.  I wanted to give folks 
a visible and unmistakable reminder that there are still lots of bugs that 
need to be looked at or followed up on.  I'm going to continue going 
through the list tomorrow and see what additional quick fixes I can do. In 
the meantime, if others can start working through the bug list also, it 
would be very helpful :-)

Have fun!

- James Snell
     IBM Emerging Technologies
     jasnell@us.ibm.com
     (559) 587-1233 (office)
     (700) 544-9035 (t/l)
     Programming Web Services With SOAP
         O'Reilly & Associates, ISBN 0596000952

     Have I not commanded you? Be strong and courageous. 
     Do not be terrified, do not be discouraged, for the Lord your 
     God will be with you whereever you go.    - Joshua 1:9



Glen Daniels <gdaniels@macromedia.com>
02/17/2003 05:29 PM
Please respond to axis-dev


To
"'axis-dev@ws.apache.org'" <axis-dev@ws.apache.org>
cc

bcc

Subject
RE: DO NOT REPLY [Bug 16844]  -     MapDeserializer creates only HashMaps, 
throwing ClassCastException when assigning




I meant "Jim Lerner" (the submitter of the bug), not "Jim Snell", you 
know. :)

I'm working on other bugs too, I just don't think this one is high enough 
priority to demand my coding attention at the moment.  I wrote up a 
proposed solution, and now I go back to looking into schema problems and 
other such fun....

--Glen

> -----Original Message-----
> From: James M Snell [mailto:jasnell@us.ibm.com]
> Sent: Monday, February 17, 2003 8:20 PM
> To: axis-dev@ws.apache.org
> Subject: Re: DO NOT REPLY [Bug 16844] - MapDeserializer creates only
> HashMaps, throwing ClassCastException when assigning
>
>
> Sounds like a plan.  While I'm going through fixing *other*
> bugs, perhaps
> *you* could go fix this one ;-) ;-)
>
> - James Snell
>      IBM Emerging Technologies
>      jasnell@us.ibm.com
>      (559) 587-1233 (office)
>      (700) 544-9035 (t/l)
>      Programming Web Services With SOAP
>          O'Reilly & Associates, ISBN 0596000952
>
>      Have I not commanded you? Be strong and courageous.
>      Do not be terrified, do not be discouraged, for the Lord your
>      God will be with you whereever you go.    - Joshua 1:9
>
>
>
> bugzilla@apache.org
> 02/17/2003 05:15 PM
> Please respond to axis-dev
>
>
> To
> axis-dev@ws.apache.org
> cc
>
> bcc
>
> Subject
> DO NOT REPLY [Bug 16844]  -     MapDeserializer creates only
> HashMaps,
> throwing ClassCastException when assigning
>
>
>
> 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 gdaniels@macromedia.com
> 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.
> 


Mime
View raw message