[
https://issues.apache.org/jira/browse/CODEC-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948975#comment-15948975
]
Yossi Tamari commented on CODEC-199:
------------------------------------
Sebb, correct me if I'm wrong, but it seems to me that in such a case, the
compiled code will continue to use the old value of the constant, instead of
the new one, and so it will continue to see the old behavior for H and W, but
the new code is backwards compatible and will not break.
> Bug in HW rule in Soundex
> -------------------------
>
> Key: CODEC-199
> URL: https://issues.apache.org/jira/browse/CODEC-199
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.10
> Reporter: Yossi Tamari
> Fix For: 1.11
>
> Attachments: better.patch, soundex.patch
>
>
> The Soundex algorithm says that if two characters that map to the same code
> are separated by H or W, the second one is not encoded.
> However, in the implementation (in Soundex.getMappingCode() line 191), a
> character that is preceded by two characters that are either H or W, is not
> encoded, regardless of what the last consonant was.
> Source: http://en.wikipedia.org/wiki/Soundex#American_Soundex
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)