You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Glen Daniels <gd...@macromedia.com> on 2002/04/17 17:34:22 UTC

RE: cvs commit: xml-axis/java/src/org/apache/axis/utils JavaUtils .java

Ya mon! :)

Give it a shot, let us know if you have any problems (you'll need bleeding-edge source from CVS, or wait until tonight's nightly).

--G

> -----Original Message-----
> From: David L. Cole [mailto:DLCole@cmsenergy.com]
> Sent: Wednesday, April 17, 2002 12:10 PM
> To: axis-dev@xml.apache.org
> Subject: RE: cvs commit: xml-axis/java/src/org/apache/axis/utils
> JavaUtils .java
> 
> 
> 
> Is Axis Serializing/Deserializing Sets now?
> Last time I checked with the Beta, I was unable to get the 
> ser/des to work
> with Sets.
> 
> 
> 
>                                                               
>                                                           
>                     Glen Daniels                              
>                                                           
>                     <gdaniels@macro        To:     
> "'axis-dev@xml.apache.org'" <ax...@xml.apache.org>                
>                     media.com>             cc:                
>                                                           
>                                            Subject:     RE: 
> cvs commit: xml-axis/java/src/org/apache/axis/utils         
>                     04/17/2002             JavaUtils    .java 
>                                                           
>                     10:04 AM                                  
>                                                           
>                     Please respond                            
>                                                           
>                     to axis-dev                               
>                                                           
>                                                               
>                                                           
>                                                               
>                                                           
> 
> 
> 
> 
> 
> >   +        ret = JavaUtils.convert(array, Collection.class);
> >   +        assertTrue("Converted array not an ArrayList",
> > (ret instanceof ArrayList));
> >   +
> >   +        ret = JavaUtils.convert(array, Set.class);
> >   +        assertTrue("Converted array not a HashSet", (ret
> > instanceof HashSet));
> 
> I think these are too limiting - if you want a Collection, 
> you should just
> test that you got a Collection and perhaps that it works (contains the
> right stuff), not that our current implementation happens to return an
> ArrayList.  Same with Set/HashSet.
> 
> --Glen
> 
> 
> 
>