mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r545104 - /mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
Date Thu, 07 Jun 2007 08:39:04 GMT
Author: trustin
Date: Thu Jun  7 01:39:03 2007
New Revision: 545104

URL: http://svn.apache.org/viewvc?view=rev&rev=545104
Log:
Fixed a bug: DIRMINA-383 (CumulativeProtocolDecoder & ByteOrder.LITTLE_ENDIAN)
* Changed the order of the newly created buffer.

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java?view=diff&rev=545104&r1=545103&r2=545104
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
(original)
+++ mina/trunk/core/src/main/java/org/apache/mina/filter/codec/CumulativeProtocolDecoder.java
Thu Jun  7 01:39:03 2007
@@ -207,6 +207,7 @@
     {
         final ByteBuffer remainingBuf = ByteBuffer.allocate( buf.capacity() );
         remainingBuf.setAutoExpand( true );
+        remainingBuf.order( buf.order() );
         remainingBuf.put( buf );
         session.setAttribute( BUFFER, remainingBuf );
     }



Mime
View raw message