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/04/27 15:31:51 UTC
cvs commit: xml-axis/java/src/org/apache/axis/handlers MsgDispatchHandler.java
rubys 01/04/27 06:31:51
Modified: java build.xml
java/src/org/apache/axis/handlers MsgDispatchHandler.java
Log:
Eliminate deprecation warning
Revision Changes Path
1.15 +4 -1 xml-axis/java/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-axis/java/build.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- build.xml 2001/04/23 08:57:07 1.14
+++ build.xml 2001/04/27 13:31:46 1.15
@@ -48,7 +48,8 @@
<property name="Name" value="Axis"/>
<property name="year" value="2001"/>
- <property name="debug" value="on"/>
+ <property name="debug" value="true"/>
+ <property name="deprecation" value="true"/>
<property name="src.dir" value="./src"/>
<property name="docs.dir" value="./docs"/>
@@ -101,6 +102,7 @@
<echo message=""/>
<echo message="--- Property values" />
<echo message="debug=${debug}" />
+ <echo message="deprecation=${deprecation}" />
<uptodate property="javadoc.notrequired"
targetfile="${build.javadocs}/index.html">
@@ -113,6 +115,7 @@
<!-- =================================================================== -->
<target name="compile" depends="setenv">
<javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}"
+ deprecation="${deprecation}"
classpathref="classpath">
<exclude name="**/old/**/*" />
<exclude name="org/apache/axis/handlers/HTTP*" unless="servlet.present"/>
1.17 +2 -2 xml-axis/java/src/org/apache/axis/handlers/MsgDispatchHandler.java
Index: MsgDispatchHandler.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/MsgDispatchHandler.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- MsgDispatchHandler.java 2001/04/26 23:07:04 1.16
+++ MsgDispatchHandler.java 2001/04/27 13:31:49 1.17
@@ -115,8 +115,8 @@
StringWriter writer = new StringWriter();
reqBody.output(new SerializationContext(writer));
- InputStream inStream = new StringBufferInputStream(writer.getBuffer().toString());
- Document doc = XMLUtils.newDocument(inStream);
+ Reader reader = new StringReader(writer.getBuffer().toString());
+ Document doc = XMLUtils.newDocument(new InputSource(reader));
// !!! WANT TO MAKE THIS SAX-CAPABLE AS WELL. Some people will
// want DOM, but our examples should mostly lean towards the