You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/04/30 23:49:05 UTC

cvs commit: xml-crimson/src/org/apache/crimson/tree DataNode.java

edwingo     01/04/30 14:49:05

  Modified:    src/org/apache/crimson/tree DataNode.java
  Log:
  Fix DOM InsertData into CharacterData at end of string fails
  
  Revision  Changes    Path
  1.2       +3 -3      xml-crimson/src/org/apache/crimson/tree/DataNode.java
  
  Index: DataNode.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/DataNode.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DataNode.java	2000/11/23 01:53:35	1.1
  +++ DataNode.java	2001/04/30 21:49:04	1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: DataNode.java,v 1.1 2000/11/23 01:53:35 edwingo Exp $
  + * $Id: DataNode.java,v 1.2 2001/04/30 21:49:04 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -73,7 +73,7 @@
    * which is not suited for complex editing operations.
    *
    * @author David Brownell
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   // public
   abstract class DataNode extends NodeBase implements CharacterData
  @@ -193,7 +193,7 @@
           if (isReadonly ())
   	    throw new DomEx (DomEx.NO_MODIFICATION_ALLOWED_ERR);
   
  -	if (offset < 0 || offset >= data.length)
  +	if (offset < 0 || offset > data.length)
   	    throw new DomEx (DOMException.INDEX_SIZE_ERR);
   
   	int	length = newData.length ();
  
  
  

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