commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24184] New: - HelpFormatter doesn't sort options properly
Date Tue, 28 Oct 2003 17:12:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24184

HelpFormatter doesn't sort options properly

           Summary: HelpFormatter doesn't sort options properly
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: CLI
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: rfletch6@yahoo.co.uk


HelpFormatter is using an inner class Comparator implementation to sort Option 
objects, however it seems to be a bit confused about what types of object it is 
sorting. The inner class is called StringBufferComparator, although it's 
actually sorting Option objects. Further, it simply compares the object's 
toString() values rather than using the getKey() method which would perform the 
sort that the comments seem to indicate is desired. The sort that is actually 
performed doesn't appear to modify the ordering of the list at all.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message