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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Utilities
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: