directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r385258 - /directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
Date Sun, 12 Mar 2006 08:43:00 GMT
Author: trustin
Date: Sun Mar 12 00:42:58 2006
New Revision: 385258

URL: http://svn.apache.org/viewcvs?rev=385258&view=rev
Log:
Fixed: hex dump is always empty at some case.

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java?rev=385258&r1=385257&r2=385258&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
Sun Mar 12 00:42:58 2006
@@ -301,9 +301,10 @@
                 if( undecodables == decoders.length )
                 {
                     // Throw an exception if all decoders cannot decode data.
+                    String dump = in.getHexDump();
                     in.position( in.limit() ); // Skip data
                     throw new ProtocolDecoderException(
-                            "No appropriate message decoder: " + in.getHexDump() );
+                            "No appropriate message decoder: " + dump );
                 }
                 
                 if( currentDecoder == null )



Mime
View raw message