Am Mittwoch, den 26.10.2005, 10:39 +0200 schrieb Roman Kennke: > Hi, > > here comes another fix from Friedjof Siebert that ensures that the field > line_separator is not null (in the unlikely but not impossible case that > the system property is not set). > > 2005-10-26 Roman Kennke <[EMAIL PROTECTED]> > > Reported by Friedjof Siebert <[EMAIL PROTECTED]> > * java/io/PrintWriter.java > (line_separator): Added default value for property to ensure > absence of null pointer exception even if property is not set.
I also commit this now. 2005-11-09 Roman Kennke <[EMAIL PROTECTED]> Reported by Friedjof Siebert <[EMAIL PROTECTED]> * java/io/PrintWriter.java (line_separator): Added default value for property to ensure absence of null pointer exception even if property is not set. /Roman
Index: java/io/PrintWriter.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/io/PrintWriter.java,v retrieving revision 1.19 diff -u -r1.19 PrintWriter.java --- java/io/PrintWriter.java 16 Sep 2005 19:49:04 -0000 1.19 +++ java/io/PrintWriter.java 9 Nov 2005 22:47:18 -0000 @@ -379,7 +379,7 @@ * This is the system dependent line separator */ private static final char[] line_separator - = System.getProperty("line.separator").toCharArray(); + = System.getProperty("line.separator", "\n").toCharArray(); /** * This method prints a line separator sequence to the stream. The value
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches