geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r225438 - /geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java
Date Wed, 27 Jul 2005 01:00:25 GMT
Author: djencks
Date: Tue Jul 26 18:00:23 2005
New Revision: 225438

URL: http://svn.apache.org/viewcvs?rev=225438&view=rev
Log:
GERONIMO-820 synchronize access to 'state' field

Modified:
    geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java

Modified: geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java?rev=225438&r1=225437&r2=225438&view=diff
==============================================================================
--- geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java
(original)
+++ geronimo/branches/v1_0_M4-QA/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/CommandSupport.java
Tue Jul 26 18:00:23 2005
@@ -70,7 +70,7 @@
         return (TargetModuleID[]) moduleIDs.toArray(new TargetModuleID[moduleIDs.size()]);
     }
 
-    public DeploymentStatus getDeploymentStatus() {
+    public synchronized DeploymentStatus getDeploymentStatus() {
         return new Status(command, action, state, message);
     }
 
@@ -155,7 +155,7 @@
         synchronized (this) {
             this.message = message;
             this.state = state;
-            newStatus = getDeploymentStatus();
+            newStatus = new Status(command, action, state, message);
             toNotify = (ProgressListener[]) listeners.toArray(new ProgressListener[listeners.size()]);
             event = new ProgressEvent(this, null, newStatus);
         }



Mime
View raw message