Menu

#26 SpellDictionaryDisk has broken string split

open
nobody
None
5
2004-05-04
2004-05-04
Anonymous
No

SpellDictionaryDisk's implemantation of split fails to
return 3 parts when first would be the empty string
(e.g. for ",0,37") -- it returns only 2 strings and
causes an ArrayIndexOutOfBoundsException in loadIndex().

The split on String produces the correct output,
SpellDictionaryDisk should probably use it rather that
implementing it's own split.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB