You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2006/10/25 15:01:13 UTC
svn commit: r467630 -
/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java
Author: pyang
Date: Wed Oct 25 06:01:13 2006
New Revision: 467630
URL: http://svn.apache.org/viewvc?view=rev&rev=467630
Log:
yet another concurrent related update
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java?view=diff&rev=467630&r1=467629&r2=467630
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java Wed Oct 25 06:01:13 2006
@@ -571,12 +571,14 @@
* If a security manager determines that the caller does not
* have the required permission.
*/
- public synchronized void setUseParentHandlers(boolean notifyParentHandlers) {
+ public void setUseParentHandlers(boolean notifyParentHandlers) {
// Anonymous loggers can always set the useParentHandlers flag
if (this.isNamed) {
LogManager.getLogManager().checkAccess();
}
- this.notifyParentHandlers = notifyParentHandlers;
+ synchronized(this){
+ this.notifyParentHandlers = notifyParentHandlers;
+ }
}
/**
@@ -616,7 +618,7 @@
* If a security manager determines that the caller does not
* have the required permission.
*/
- public synchronized void setParent(Logger parent) {
+ public void setParent(Logger parent) {
if (null == parent) {
// logging.B=The 'parent' parameter is null.
throw new NullPointerException(Messages.getString("logging.B")); //$NON-NLS-1$