Hi Glenn,
I applied your patch to the CVS version. I had to do it by hand because
it doesn't work with patch, can you use diff -u in the future?
Thanks again,
--Keith
Glenn Nielsen wrote:
>
> 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++;
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev