[commit-cp] classpath ChangeLog java/util/Scanner.java java...

Andrew John Hughes <[email protected]> Tue, 07 Jul 2009 10:27:19 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Andrew John Hughes <gnu_andrew>	09/07/07 10:27:19

Modified files:
	.              : ChangeLog 
	java/util      : Scanner.java 
	java/util/regex: Matcher.java 

Log message:
	Correctly spot EOF in java.util.Scanner#hasNextLine().
	
	2009-07-07  Andrew John Hughes  <[email protected]>
	
		PR classpath/40630
		* java/util/Scanner.java:
		(myCoreNext(boolean, Pattern)): Set tmp2 to
		null if the string is empty (i.e. we are at
		the end of the file).
		* java/util/regex/Matcher.java:
		(toMatchResult()): Check that match is non-null
		before attempting to clone it.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9769&r2=1.9770
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Scanner.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/regex/Matcher.java?cvsroot=classpath&r1=1.24&r2=1.25