modified lineSeparator assigment
@@ -106,7 +106,8 @@ public class BufferedWriter extends Writer {
nChars = sz;
nextChar = 0;
- lineSeparator = System.getProperty("line.separator");
+ lineSeparator = java.security.AccessController.doPrivileged(
+ new sun.security.action.GetPropertyAction("line.separator"));
}
/** Checks to make sure that the stream has not been closed */
