mina-commits mailing list archives

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

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

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

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



Mime
View raw message