jkesselm    02/05/09 06:51:58

  Modified:    java/src/org/apache/xalan/serialize SerializerToText.java
  Log:
  Bugzilla 8358 -- bad method signature. I've created a new method
  with the correct signature. The old one may or may not be entirely
  superfluous, but I don't want to muck with it right now.
  
  Revision  Changes    Path
  1.5       +20 -2     
xml-xalan/java/src/org/apache/xalan/serialize/SerializerToText.java
  
  Index: SerializerToText.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/SerializerToText.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SerializerToText.java     4 Nov 2001 05:22:27 -0000       1.4
  +++ SerializerToText.java     9 May 2002 13:51:58 -0000       1.5
  @@ -509,15 +509,33 @@
   
     /**
      * Called when a Comment is to be constructed.
  +   * Note that Xalan will normally invoke the other version of this method.
  +   * %REVIEW% In fact, is this one ever needed, or was it a mistake?
  +   *
      * @param   data  The comment data.
      * @throws org.xml.sax.SAXException Any SAX exception, possibly
      *            wrapping another exception.
  -   *
  -   * @throws org.xml.sax.SAXException
      */
     public void comment(String data) throws org.xml.sax.SAXException
     {
  +    // No action for the moment.
  +  }
   
  +  /**
  +   * Report an XML comment anywhere in the document.
  +   *
  +   * This callback will be used for comments inside or outside the
  +   * document element, including comments in the external DTD
  +   * subset (if read).
  +   *
  +   * @param ch An array holding the characters in the comment.
  +   * @param start The starting position in the array.
  +   * @param length The number of characters to use from the array.
  +   * @throws org.xml.sax.SAXException The application may raise an exception.
  +   */
  +  public void comment(char ch[], int start, int length)
  +          throws org.xml.sax.SAXException
  +  {
       // No action for the moment.
     }
   
  
  
  

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

Reply via email to