eugene-bulkin / fuzzy-search-tools

Automatically exported from code.google.com/p/fuzzy-search-tools
0 stars 0 forks source link

ArrayIndexOutOfBoundsException when exceeding DEFAULT_LENGTH #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pass a string longer than DEFAULT_LENGTH

What is the expected output? What do you see instead?

It should increase currentRow, previousRow and transpositionRow. Instead, an 
ArrayIndexOutOfBoundsException is thrown.

I believe the problem lies with these checks:
http://code.google.com/p/fuzzy-search-tools/source/browse/trunk/src/ru/fuzzysear
ch/DamerauLevensteinMetric.java#42
http://code.google.com/p/fuzzy-search-tools/source/browse/trunk/src/ru/fuzzysear
ch/DamerauLevensteinMetric.java#103

Shouldn't it be >=?

Original issue reported on code.google.com by GoncaloS...@gmail.com on 1 Jun 2012 at 5:01

GoogleCodeExporter commented 8 years ago
Thanks for these awesome implementations, by the way. Great code.

Original comment by GoncaloS...@gmail.com on 1 Jun 2012 at 5:03