Improved error-handling in Rfc822Tokenizer
The javadoc for the Rfc822Tokenizer states that it will try to be tolerant to broken syntax instead of returning an error (as in an unchecked exception). In some rare cases where the input is clearly incorrect, the tokenizer throws a StringIndexOutOfBoundsException, which was found during one of the monkey test runs. This commits fixes that crash, and teaches the tokenizer to just continue to run anyway. Two simple junit testcases has also been added for testing the default and the errornous case.
Loading
Please register or sign in to comment