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 ru...@apache.org on 2001/06/21 13:15:15 UTC

cvs commit: xml-axis/java/src/org/apache/axis AxisFault.java

rubys       01/06/21 04:15:15

  Modified:    java/src/org/apache/axis AxisFault.java
  Log:
  Fix a class cast exception
  
  Revision  Changes    Path
  1.21      +4 -1      xml-axis/java/src/org/apache/axis/AxisFault.java
  
  Index: AxisFault.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisFault.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- AxisFault.java	2001/05/31 15:35:19	1.20
  +++ AxisFault.java	2001/06/21 11:15:14	1.21
  @@ -162,7 +162,10 @@
   
     public Element[] getFaultDetails() {
       if (faultDetails == null) return null;
  -    return( (Element[]) faultDetails.toArray() );
  +    Element result[] = new Element[faultDetails.size()];
  +    for (int i=0; i<result.length; i++)
  +      result[i] = (Element) faultDetails.elementAt(i);
  +    return result;
     }
   
     public void output(SerializationContext context) throws Exception {