Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-135

[Foo]Name.compareTo(GenericName) should be case-sensitive

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: Utilities
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              desruisseaux Martin Desruisseaux
              Reporter:
              desruisseaux Martin Desruisseaux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: