xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From il...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/templates ElemElement.java
Date Thu, 24 Apr 2003 19:54:16 GMT
ilene       2003/04/24 12:54:16

  Modified:    java/src/org/apache/xalan/templates ElemElement.java
  Log:
  Duplicate trace was event being issued.  One from ElemElement and then 
  from its parent class: ElemUse.
  
  Revision  Changes    Path
  1.31      +9 -5      xml-xalan/java/src/org/apache/xalan/templates/ElemElement.java
  
  Index: ElemElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemElement.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- ElemElement.java	1 Apr 2003 20:16:27 -0000	1.30
  +++ ElemElement.java	24 Apr 2003 19:54:15 -0000	1.31
  @@ -275,9 +275,11 @@
               throws TransformerException
     {
   
  -    if (TransformerImpl.S_DEBUG)
  -      transformer.getTraceManager().fireTraceEvent(this);
  -      
  +//    This was causing a duplicate trace event because the parent class, ElemUse
  +//    is also firing this.
  +//       if (TransformerImpl.S_DEBUG)
  +//         transformer.getTraceManager().fireTraceEvent(this);
  +
    	SerializationHandler rhandler = transformer.getSerializationHandler();
       XPathContext xctxt = transformer.getXPathContext();
       int sourceNode = xctxt.getCurrentNode();
  @@ -362,8 +364,10 @@
   
       constructNode(nodeName, prefix, nodeNamespace, transformer);
   
  -    if (TransformerImpl.S_DEBUG)
  -      transformer.getTraceManager().fireTraceEndEvent(this);
  +//  This was causing a duplicate trace event because the parent class, ElemUse
  +//  is also firing this.
  +//    if (TransformerImpl.S_DEBUG)
  +//      transformer.getTraceManager().fireTraceEndEvent(this);
     }
     
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message