axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser QNameSerializer.java
Date Mon, 19 Aug 2002 20:18:04 GMT
butek       2002/08/19 13:18:04

  Modified:    java/src/org/apache/axis/encoding/ser QNameSerializer.java
  Log:
  Sometime in the last couple weeks the TCK had more failures.  This fixes
  them.
  
  Revision  Changes    Path
  1.6       +4 -2      xml-axis/java/src/org/apache/axis/encoding/ser/QNameSerializer.java
  
  Index: QNameSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/QNameSerializer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- QNameSerializer.java	16 Aug 2002 11:07:09 -0000	1.5
  +++ QNameSerializer.java	19 Aug 2002 20:18:04 -0000	1.6
  @@ -77,9 +77,11 @@
                             Object value, SerializationContext context)
           throws IOException
       {
  -        QName qname = (QName) value;
  +        // NOTE:  getValueAsString has the side-effect of priming the context
  +        // with the QName's namespace, so it must be called BEFORE context.startElement.
  +        String qnameString = getValueAsString(value, context);
           context.startElement(name, attributes);
  -        context.writeString(getValueAsString(qname, context));
  +        context.writeString(qnameString);
           context.endElement();
       }
   
  
  
  

Mime
View raw message