You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bh...@apache.org on 2009/12/14 07:56:22 UTC

svn commit: r890197 - /cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java

Author: bharath
Date: Mon Dec 14 06:56:22 2009
New Revision: 890197

URL: http://svn.apache.org/viewvc?rev=890197&view=rev
Log:
@Bug: CXF-2581
@Desc During logging, we invoke toString on an array, which will generate junk result. Fixed this by invoking Arrays.toString to convert the array into a readable String that gives the contents of the array.
@Test Units Tests

Modified:
    cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java

Modified: cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java?rev=890197&r1=890196&r2=890197&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java (original)
+++ cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/soap/RetransmissionQueueImpl.java Mon Dec 14 06:56:22 2009
@@ -24,6 +24,7 @@
 import java.io.OutputStream;
 import java.math.BigInteger;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Date;
 import java.util.HashMap;
@@ -335,7 +336,7 @@
             if (null == content) {                
                 content = message.getContent(byte[].class); 
                 if (LOG.isLoggable(Level.FINE)) {
-                    LOG.fine("Using saved byte array: " + content);
+                    LOG.fine("Using saved byte array: " + Arrays.toString(content));
                 }
             } else {
                 if (LOG.isLoggable(Level.FINE)) {