[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Reopened] (CODEC-199) Bug in HW rule in Soundex
From:       "Sebb (JIRA)" <jira () apache ! org>
Date:       2017-03-30 12:21:41
Message-ID: JIRA.12783203.1426766140000.164364.1490876501590 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/CODEC-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Sebb reopened CODEC-199:
------------------------

Unfortunately the fix breaks binary compatibility.
It changes a public string constant.
That can cause problems because the Java compiler can inline constants, so code may \
fail to pick up a new value.

> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic