[ 
https://issues.apache.org/jira/browse/CODEC-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17838783#comment-17838783
 ] 

Gary D. Gregory commented on CODEC-320:
---------------------------------------

[~mfry4109] 

Thank you for your report and research. This is fixed in git master and 
snapshot builds in 
[https://repository.apache.org/content/repositories/snapshots/commons-codec/commons-codec/1.17.0-SNAPSHOT/]

 

 

> 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
>            Priority: Major
>             Fix For: 1.17.0
>
>         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)

Reply via email to