You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by qi...@apache.org on 2009/07/08 11:10:28 UTC
svn commit: r792077 -
/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java
Author: qiuxx
Date: Wed Jul 8 09:10:28 2009
New Revision: 792077
URL: http://svn.apache.org/viewvc?rev=792077&view=rev
Log:
Apply for HARMONY-5981, [classlib][logging] FileHandler may throw exception when logging to the same file by multiple thread
Modified:
harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java
Modified: harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java?rev=792077&r1=792076&r2=792077&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/FileHandler.java Wed Jul 8 09:10:28 2009
@@ -563,7 +563,7 @@
* the log record to publish.
*/
@Override
- public void publish(LogRecord record) {
+ public synchronized void publish(LogRecord record) {
super.publish(record);
flush();
if (limit > 0 && output.getLength() >= limit) {