Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-914

Make a bit easier to compare a Version to a String

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4.1
    • Fix Version/s: 7.4.2, 8.0-milestone-2
    • Component/s: Extension
    • Labels:
      None
    • Documentation:
      N/A
    • Similar issues:

      Description

      Main use case being Velocity. Velocity auto convert does not work because the signature of the method is compareTo(Objet) so it always match.

      The solution is to introduce an explicit compareTo(String) method.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: