santiagopg    2002/07/23 12:47:42

  Modified:    java/src/org/apache/xalan/xsltc/compiler XSLTC.java
  Log:
  Synchronize calls to Stylesheet.translate() using class' lock.
  
  Revision  Changes    Path
  1.42      +6 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java
  
  Index: XSLTC.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- XSLTC.java        9 Jul 2002 15:31:25 -0000       1.41
  +++ XSLTC.java        23 Jul 2002 19:47:42 -0000      1.42
  @@ -341,7 +341,11 @@
            if ((!_parser.errorsFound()) && (_stylesheet != null)) {
                _stylesheet.setCallsNodeset(_callsNodeset);
                _stylesheet.setMultiDocument(_multiDocument);
  -             _stylesheet.translate();
  +
  +             // Class synchronization is needed for BCEL
  +             synchronized (getClass()) {
  +                 _stylesheet.translate();
  +             }
            }
        }
        catch (Exception e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to