Changeset 12322


Ignore:
Timestamp:
01/01/10 19:34:30 (14 years ago)
Author:
ehuelsmann
Message:

Follow up to r12321; changes resulting from more testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java

    r12321 r12322  
    5151import java.nio.charset.CoderResult;
    5252import java.nio.charset.CodingErrorAction;
     53import org.armedbear.lisp.Debug;
    5354
    5455public class RandomAccessCharacterFile {
     
    374375                // catching MalformedInput
    375376                throw new RACFMalformedInputException(bbuf.position(),
    376                                                       bbuf.get(bbuf.position()),
     377                                                      (char)bbuf.get(bbuf.position()),
    377378                                                      cset.name());
    378379            if (r.isUnmappable())
     
    380381                // to map all characters
    381382                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??
    384386        }
    385387        if (cbuf.remaining() == len) {
     
    425427                                                      cset.name());
    426428            }
    427             if (CoderResult.UNDERFLOW == r)
    428                 Debug.assertTrue(false);
     429            // UNDERFLOW is the normal condition where cbuf runs out
     430            // before bbuf is filled.
    429431        }
    430432        if (bbuf.position() > 0 && bbufIsDirty && flush) {
Note: See TracChangeset for help on using the changeset viewer.