sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-135) [Foo]Name.compareTo(GenericName) should be case-sensitive
Date Fri, 06 Sep 2013 16:45:51 GMT
Martin Desruisseaux created SIS-135:
---------------------------------------

             Summary: [Foo]Name.compareTo(GenericName) should be case-sensitive
                 Key: SIS-135
                 URL: https://issues.apache.org/jira/browse/SIS-135
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 0.3
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 0.4


Implementation of {{DefaultLocalName.compareTo(GenericName)}} in SIS 0.3 compares the name
components in a case-insensitive way, using {{String.compareToIgnoreCase(String)}}. However
it has the following inconvenient:

* Slightly slower than {{String.compareTo(String)}}.
* Increase the inconsistency with {{equals(Object)}}.
* May be more suprising to the developer (in particular, it causes {{AbstractName.compareTo(String)}}
to be also case-insensitive).
* Result in unsatisfactory ordering for certain locales anyway (we are supposed to use {{java.text.Collator}}
instead).

We should revert to the more standard case-sensitive comparison.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message