Attached is a patch to fix an ArrayOutOfBoundsException in the XML
StringValidator.

Regards,

Glenn

----------------------------------------------------------------------
Glenn Nielsen             [EMAIL PROTECTED] | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------
*** castor/src/main/org/exolab/castor/xml/validators/StringValidator.java       Thu 
May 10 13:08:38 2001
--- castor-patched/src/main/org/exolab/castor/xml/validators/StringValidator.java      
 Mon Nov 12 18:19:16 2001
***************
*** 185,194 ****
                      temp[temp_count] = chars[i];
                      temp_count++;
                      //--skip the others
!                     int j = i+1;
!                     while (chars[j] == ' ')
!                         j++;
!                     i=j;
                  }
                  temp[temp_count] = chars[i];
                  temp_count++;
--- 185,194 ----
                      temp[temp_count] = chars[i];
                      temp_count++;
                      //--skip the others
!                     i++;
!                     while (i<length-1 && chars[i] == ' ')
!                         i++;
!                     continue;
                  }
                  temp[temp_count] = chars[i];
                  temp_count++;

Reply via email to