Changeset 12322
- Timestamp:
- 01/01/10 19:34:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
r12321 r12322 51 51 import java.nio.charset.CoderResult; 52 52 import java.nio.charset.CodingErrorAction; 53 import org.armedbear.lisp.Debug; 53 54 54 55 public class RandomAccessCharacterFile { … … 374 375 // catching MalformedInput 375 376 throw new RACFMalformedInputException(bbuf.position(), 376 bbuf.get(bbuf.position()),377 (char)bbuf.get(bbuf.position()), 377 378 cset.name()); 378 379 if (r.isUnmappable()) … … 380 381 // to map all characters 381 382 Debug.assertTrue(false); 382 if (CoderResult.OVERFLOW == r) 383 Debug.assertTrue(false); 383 // OVERFLOW is a normal condition: 384 // it's equal to cbuf.remaining() == 0 385 // ### EHU: really??? EXACTLY equal?? 384 386 } 385 387 if (cbuf.remaining() == len) { … … 425 427 cset.name()); 426 428 } 427 if (CoderResult.UNDERFLOW == r)428 Debug.assertTrue(false);429 // UNDERFLOW is the normal condition where cbuf runs out 430 // before bbuf is filled. 429 431 } 430 432 if (bbuf.position() > 0 && bbufIsDirty && flush) {
Note: See TracChangeset
for help on using the changeset viewer.