neilg       2002/09/12 17:10:08

  Modified:    java/src/org/apache/xerces/impl XMLEntityManager.java
  Log:
  fix for the mysterious ArrayIndexOutOfBoundsException that assailed Xerces-J during 
gump builds on 09/12/02.
  Cause was a small optimization, where a character was read from the current entity 
*before* it was
  ascertained whether there was anything at that place in the buffer.
  
  Revision  Changes    Path
  1.44      +3 -3      xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java
  
  Index: XMLEntityManager.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLEntityManager.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- XMLEntityManager.java     11 Sep 2002 20:22:35 -0000      1.43
  +++ XMLEntityManager.java     13 Sep 2002 00:10:07 -0000      1.44
  @@ -2775,8 +2775,8 @@
               boolean done = false;
               int delimLen = delimiter.length();
               char charAt0 = delimiter.charAt(0);
  -            int offset = fCurrentEntity.position;
  -            int c = fCurrentEntity.ch[offset];
  +            int offset = 0;
  +            int c = -1;
               int newlines = 0;
               boolean external = fCurrentEntity.isExternal();
               do {
  
  
  

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

Reply via email to