Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-29

Soundex.setMaxLength causes bugs and is not needed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • None
    • Operating System: other
      Platform: Other

    • 24484

    Description

      Calling Soundex.setMaxLength() with a value of 2 or less causes the wrong answer
      to be returned. Since the encoding returned by Soundex is /always/ of length 4
      by definition (we do not use the '-' in as a letter-nnn separator for some
      reason) the need for a maxLength attribute is not needed (I claim). Deprecate
      the field and accessor methods.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: