Author: toad
Date: 2009-02-03 23:24:51 +0000 (Tue, 03 Feb 2009)
New Revision: 25533

Modified:
   branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
Log:
Logging


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-02-03 23:04:02 UTC (rev 25532)
+++ branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-02-03 23:24:51 UTC (rev 25533)
@@ -96,7 +96,7 @@
                                if(offset + length >= max)
                                        length = (int) Math.min(max - offset, 
Integer.MAX_VALUE);
                                if(length == 0) return -1;
-                               if(length < 0) throw new 
IllegalStateException("offset="+bufOffset+" length="+length+" buf len = 
"+buffer.length+" my offset is "+offset+" my size is "+max);
+                               if(length < 0) throw new 
IllegalStateException("offset="+bufOffset+" length="+length+" buf len = 
"+buffer.length+" my offset is "+offset+" my size is "+max+" for "+this+" for 
"+PersistentBlobTempBucket.this);
                                ByteBuffer buf = ByteBuffer.wrap(buffer, 
bufOffset, length);
                                int read = channel.read(buf, blockSize * index 
+ offset);
                                if(read > 0) offset += read;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to