dlr 2005/04/28 15:48:49
Modified: src/java/org/apache/xmlrpc XmlRpcClientWorker.java Log: * src/java/org/apache/xmlrpc/XmlRpcClientWorker.java (PROCESSING_ERROR_FLAG): Renamed from PROCESSING_ERROR to better reflect that it itself is not an error, but a marker value. (execute): Reverted a debugging statement accidently converted from stdout to stderr in CVS rev 1.4. Switched to new constant name PROCESSING_ERROR_FLAG. Revision Changes Path 1.6 +4 -4 ws-xmlrpc/src/java/org/apache/xmlrpc/XmlRpcClientWorker.java Index: XmlRpcClientWorker.java =================================================================== RCS file: /home/cvs/ws-xmlrpc/src/java/org/apache/xmlrpc/XmlRpcClientWorker.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -u -r1.5 -r1.6 --- XmlRpcClientWorker.java 28 Apr 2005 22:38:23 -0000 1.5 +++ XmlRpcClientWorker.java 28 Apr 2005 22:48:49 -0000 1.6 @@ -36,7 +36,7 @@ * Used as an internal marker value in [EMAIL PROTECTED] * #execute(XmlRpcClientRequest, XmlRpcTransport)}. */ - private static final Object PROCESSING_ERROR = new Object(); + private static final Object PROCESSING_ERROR_FLAG = new Object(); public XmlRpcClientWorker() { @@ -57,7 +57,7 @@ throws XmlRpcException, XmlRpcClientException, IOException { long now = 0; - Object response = PROCESSING_ERROR; + Object response = PROCESSING_ERROR_FLAG; if (XmlRpc.debug) { @@ -93,7 +93,7 @@ { if (XmlRpc.debug) { - System.err.println("Spent " + (System.currentTimeMillis() - now) + System.out.println("Spent " + (System.currentTimeMillis() - now) + " millis in request/process/response"); } @@ -107,7 +107,7 @@ { // Don't clobber an earlier exception. boolean haveFault = response instanceof XmlRpcException; - if (haveFault || response == PROCESSING_ERROR) + if (haveFault || response == PROCESSING_ERROR_FLAG) { System.err.println("Avoiding obscuring previous error " + "by supressing error encountered " +