[jira] [Created] (CODEC-169) What should StringEncoderComparator do with non-Comparable encoded params?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CODEC-169) What should StringEncoderComparator do with non-Comparable encoded params?

Dmitri Blinov (Jira)
Sebb created CODEC-169:
--------------------------

             Summary: What should StringEncoderComparator do with non-Comparable encoded params?
                 Key: CODEC-169
                 URL: https://issues.apache.org/jira/browse/CODEC-169
             Project: Commons Codec
          Issue Type: Bug
            Reporter: Sebb


If the StringEncoderComparator is created with a StringEncoder that can generate a non-Comparable encoded version, then the compare() method will currently fail with ClassCastException.

What should it do?
Return 0 as for EncoderException?

--
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