axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java
Date Mon, 18 Nov 2002 18:52:06 GMT
stevel      2002/11/18 10:52:05

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  axis-user complaint: the nightly builds wont work on pre1.4 jvms no more.
  
  java1.3 and below had no StringBuffer.append(StringBuffer), but did have StringBuffer.append(Object).
So on a 1.3 build this code maps to the Object call, toString() is called and all is well.
But on a 1.4 build the new method is used instead, so it aint there at runtime. I wonder how
many other places this happens. And I wonder if IDEA has a way to tell me...
  
  Revision  Changes    Path
  1.92      +6 -2      xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- HTTPSender.java	4 Nov 2002 16:33:07 -0000	1.91
  +++ HTTPSender.java	18 Nov 2002 18:52:05 -0000	1.92
  @@ -398,8 +398,12 @@
               header.append("\r\n");
           }
   
  -        if (null != otherHeaders)
  -            header.append(otherHeaders); //Add other headers to the end.
  +        if (null != otherHeaders) {
  +            //Add other headers to the end.
  +            //for pre java1.4 support, we have to turn the string buffer argument into
  +            //a string before appending.
  +            header.append(otherHeaders.toString()); 
  +        }
   
   
           header.append("\r\n"); //The empty line to start the BODY.
  
  
  

Mime
View raw message