Martin Frydl created CODEC-320: ---------------------------------- Summary: Wrong output of DoubleMetaphone in 1.16.1 Key: CODEC-320 URL: https://issues.apache.org/jira/browse/CODEC-320 Project: Commons Codec Issue Type: Bug Reporter: Martin Frydl Attachments: Test.java, fix.patch
It looks like there is a bug in DoubleMetaphone implementation in version 1.16.1. Older 1.16.0 is fine. In fact I'm not 100% sure it is a bug, but it behaves differently and the old output looks much more reasonable than the new one. Old code contains index+=2 - https://github.com/apache/commons-codec/blob/rel/commons-codec-1.16.0/src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java#L462 New code does not contain that line - https://github.com/apache/commons-codec/blob/rel/commons-codec-1.16.1/src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java#L619 -- This message was sent by Atlassian Jira (v8.20.10#820010)