This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.io.LineNumberReader


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I merged a little fix for LineNumberReader from classpath. Patch 
appended.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/aUvqWSOgCCdjSDsRAp+tAJ4yssJEw9qpJkD0JxNTeig43+FzlQCfTEnX
33z9rjtuG4bNb6cIOrLug50=
=FFML
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2148
diff -u -b -B -r1.2148 ChangeLog
--- ChangeLog	18 Sep 2003 05:51:49 -0000	1.2148
+++ ChangeLog	18 Sep 2003 06:04:29 -0000
@@ -1,3 +1,8 @@
+2003-09-18  David P Grove  <groved@us.ibm.com>
+
+	* java/io/LineNumberReader (read): Don't reset pos & limit when
+	markPos is 0.
+
 2003-09-18  Dalibor Topic  <robilad@kaffe.org>
 
 	* gnu/java/rmi/rmic/Compile_gcj.java (COMPILER_ARGS): New private
Index: java/io/LineNumberReader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/LineNumberReader.java,v
retrieving revision 1.9
diff -u -b -B -r1.9 LineNumberReader.java
--- java/io/LineNumberReader.java	24 Jun 2003 07:25:24 -0000	1.9
+++ java/io/LineNumberReader.java	18 Sep 2003 06:04:29 -0000
@@ -227,7 +227,7 @@
 	  {
 	    if (markPos >= 0 && limit == buffer.length)
 	      markPos = -1;
-	    if (markPos <= 0)
+	    if (markPos < 0)
 	      pos = limit = 0;
 	    int count = in.read(buffer, limit, buffer.length - limit);
 	    if (count <= 0)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]