commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Closed: (LANG-316) Enable CaseInsensitivity in EqualsBuilder and HashCodeBuilder
Date Sun, 07 Feb 2010 05:54:27 GMT


Henri Yandell closed LANG-316.

    Resolution: Won't Fix

Seems that you could quite easily extend HashCodeBuilder and add appendIgnoreCase(String).
I don't think you would want to override append(Object) or append(String); you're only going
to want the ignoreCase on occasion.

I'm going to resolve this as WONTFIX. What it really uncovers is that you should never use
equalsIgnoreCase in an equals() method as it's impossible to ensure hashCode remains consistent.

> Enable CaseInsensitivity in EqualsBuilder and HashCodeBuilder
> -------------------------------------------------------------
>                 Key: LANG-316
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.builder.*
>    Affects Versions: 2.3
>         Environment: Any
>            Reporter: Nelson Carpentier
>            Priority: Minor
>             Fix For: 3.0
>         Attachments: lang_20070206.diff, lang_20070529.diff
> Sometimes I want a String property containing "ThisString" to be seen as equal to "THISstring".
 EqualsBuilder (and HashCodeBuilder) should be enhanced to optionally handle this requirement.

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

View raw message