David created AXIOM-450:
---------------------------
Summary: getSkipArray bug
Key: AXIOM-450
URL: https://issues.apache.org/jira/browse/AXIOM-450
Project: Axiom
Issue Type: Bug
Components: API
Affects Versions: 1.2.14
Reporter: David
Starting on line 134 of ByteSearch.java, the for loop should be:
for (int k = pattern.length-1; k > 0; k--) {
skip[pattern[k] &(0xff)] = (short)k;
}
That is, it loops from the last character to the first character (exclusive),
and sets the skip pattern to the distance between the character and the start
of the array (which is just the index in the array).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]