Index: java/nio/Buffer.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/nio/Buffer.java,v retrieving revision 1.10 diff -u -b -B -r1.10 Buffer.java --- java/nio/Buffer.java 8 Apr 2004 20:45:13 -0000 1.10 +++ java/nio/Buffer.java 26 May 2004 22:10:46 -0000 @@ -148,11 +148,11 @@ if ((newLimit < 0) || (newLimit > cap)) throw new IllegalArgumentException (); - if (newLimit <= mark) + if (newLimit < mark) mark = -1; if (pos > newLimit) - pos = newLimit - 1; + pos = newLimit; limit = newLimit; return this;