harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r467630 - /incubator/harmony/enhanced/classlib/trunk/modules/logging/src/main/java/java/util/logging/Logger.java
Date Wed, 25 Oct 2006 13:01:13 GMT
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$



Mime
View raw message