cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow AbstractInterpreter.java
Date Tue, 19 Mar 2002 09:25:55 GMT
ovidiu      02/03/19 01:25:55

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow
                        AbstractInterpreter.java
  Log:
  FIXME: Protect with a synchronize removing the registered files from
  needResolve.
  
  Revision  Changes    Path
  1.3       +9 -12     xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java
  
  Index: AbstractInterpreter.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/AbstractInterpreter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractInterpreter.java	18 Mar 2002 06:37:23 -0000	1.2
  +++ AbstractInterpreter.java	19 Mar 2002 09:25:55 -0000	1.3
  @@ -169,18 +169,15 @@
         }
       }
   
  -    int size = needResolve.size();
  -
  -    if (size > 0) {
  -      synchronized (this) {
  -        size = needResolve.size();
  -        for (int i = size - 1; i >= 0; i--) {
  -          String source = (String)needResolve.get(i);
  -          ScriptSource src = new ScriptSource(this, source);
  -          scripts.put(source, src);
  -          needResolve.remove(i);
  -          src.refresh(environment);
  -        }
  +    // FIXME: remove the need for synchronization
  +    synchronized (this) {
  +      int size = needResolve.size();
  +      for (int i = 0; i < size; i++) {
  +        String source = (String)needResolve.get(0);
  +        ScriptSource src = new ScriptSource(this, source);
  +        scripts.put(source, src);
  +        needResolve.remove(0);
  +        src.refresh(environment);
         }
       }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message