mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r563390 - /mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java
Date Tue, 07 Aug 2007 04:14:07 GMT
Author: trustin
Date: Mon Aug  6 21:14:06 2007
New Revision: 563390

URL: http://svn.apache.org/viewvc?view=rev&rev=563390
Log:
Fixed bugs reported by Geoff Cadien
* count property is miscalculated in DefaultFileRegion
* A possible ClassCastException in clearWriteRequestQueue()

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java?view=diff&rev=563390&r1=563389&r2=563390
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/common/support/DefaultFileRegion.java Mon
Aug  6 21:14:06 2007
@@ -48,7 +48,7 @@
         if (value < position) {
             throw new IllegalArgumentException("New position value may not be less than old
position value");
         }
-        count += value - position;
+        count -= value - position;
         position = value;
     }
 



Mime
View raw message