You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2008/07/06 14:36:32 UTC

[jira] Created: (CODEC-72) Soundex and RefinedSoundex issues with character arrays

Soundex and RefinedSoundex issues with character arrays
-------------------------------------------------------

                 Key: CODEC-72
                 URL: https://issues.apache.org/jira/browse/CODEC-72
             Project: Commons Codec
          Issue Type: Bug
            Reporter: Sebb
            Priority: Minor


Soundex and RefinedSoundex both have public US_ENGLISH_MAPPING char arrays. These don't appear to be used externally, so should be made private - or at least package protected.

Also, the class constructors store externally mutable char arrays; it would be better if these were copied.

Patch to follow.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CODEC-72) Soundex and RefinedSoundex issues with character arrays

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CODEC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated CODEC-72:
-------------------------------

    Fix Version/s: 1.4

All for this in 1.4. Will it get by the backwards compatibility gatekeepers?

> Soundex and RefinedSoundex issues with character arrays
> -------------------------------------------------------
>
>                 Key: CODEC-72
>                 URL: https://issues.apache.org/jira/browse/CODEC-72
>             Project: Commons Codec
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: soundex.patch
>
>
> Soundex and RefinedSoundex both have public US_ENGLISH_MAPPING char arrays. These don't appear to be used externally, so should be made private - or at least package protected.
> Also, the class constructors store externally mutable char arrays; it would be better if these were copied.
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CODEC-72) Soundex and RefinedSoundex issues with character arrays

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CODEC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed CODEC-72.
------------------------------

    Resolution: Fixed

svn ci -m "Applying sebb's patch from CODEC-72 - fixing the char[] API of Soundex/RefinedSoundex, which shouldn't be used externally as they are the defaults. He's replaced them with Strings for the external use and copying of inputted char[]s" 

src/test/org/apache/commons/codec/language/RefinedSoundexTest.java 
src/test/org/apache/commons/codec/language/SoundexTest.java 
src/java/org/apache/commons/codec/language/RefinedSoundex.java 
src/java/org/apache/commons/codec/language/Soundex.java

Sending        src/java/org/apache/commons/codec/language/RefinedSoundex.java
Sending        src/java/org/apache/commons/codec/language/Soundex.java
Sending        src/test/org/apache/commons/codec/language/RefinedSoundexTest.java
Sending        src/test/org/apache/commons/codec/language/SoundexTest.java
Transmitting file data ....
Committed revision 757676.

> Soundex and RefinedSoundex issues with character arrays
> -------------------------------------------------------
>
>                 Key: CODEC-72
>                 URL: https://issues.apache.org/jira/browse/CODEC-72
>             Project: Commons Codec
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: soundex.patch
>
>
> Soundex and RefinedSoundex both have public US_ENGLISH_MAPPING char arrays. These don't appear to be used externally, so should be made private - or at least package protected.
> Also, the class constructors store externally mutable char arrays; it would be better if these were copied.
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CODEC-72) Soundex and RefinedSoundex issues with character arrays

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CODEC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated CODEC-72:
----------------------

    Attachment: soundex.patch

Make char arrays private; use array copy of char[] parameters.
Add public string to RefinedSoundex to give access to mapping.

Add constructors which take a string.

Update test cases to test other constructors.

> Soundex and RefinedSoundex issues with character arrays
> -------------------------------------------------------
>
>                 Key: CODEC-72
>                 URL: https://issues.apache.org/jira/browse/CODEC-72
>             Project: Commons Codec
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>         Attachments: soundex.patch
>
>
> Soundex and RefinedSoundex both have public US_ENGLISH_MAPPING char arrays. These don't appear to be used externally, so should be made private - or at least package protected.
> Also, the class constructors store externally mutable char arrays; it would be better if these were copied.
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.