xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ig...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xpath XPathContext.java
Date Thu, 16 Oct 2003 20:24:28 GMT
igorh       2003/10/16 13:24:28

  Modified:    java/src/org/apache/xpath XPathContext.java
  Log:
  Patch for Bugzilla Bug 7408. Submitrd by  Richard Cao.
  
  Revision  Changes    Path
  1.50      +11 -9     xml-xalan/java/src/org/apache/xpath/XPathContext.java
  
  Index: XPathContext.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/XPathContext.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- XPathContext.java	28 Jun 2003 15:09:53 -0000	1.49
  +++ XPathContext.java	16 Oct 2003 20:24:28 -0000	1.50
  @@ -626,16 +626,18 @@
      */
     private void assertion(boolean b, String msg) throws javax.xml.transform.TransformerException
     {
  -
  -    ErrorListener errorHandler = getErrorListener();
  -
  -    if (errorHandler != null)
  +    if (!b) 
       {
  -      errorHandler.fatalError(
  -        new TransformerException(
  -          XSLMessages.createMessage(
  -            XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,
  -            new Object[]{ msg }), (SAXSourceLocator)this.getSAXLocator()));
  +      ErrorListener errorHandler = getErrorListener();
  +
  +      if (errorHandler != null)
  +      {
  +        errorHandler.fatalError(
  +          new TransformerException(
  +            XSLMessages.createMessage(
  +              XPATHErrorResources.ER_INCORRECT_PROGRAMMER_ASSERTION,
  +              new Object[]{ msg }), (SAXSourceLocator)this.getSAXLocator()));
  +      }
       }
     }
   
  
  
  

---------------------------------------------------------------------
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