mdarifmustafa / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

ldaptive: sorting binary attributes #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using a sort behavior of SORTED with binary attributes, multiple values 
will report a class cast exception.
This is due to the fact that byte[] does not have a natural comparator and 
cannot be cast as comparable.
While it is unnatural to sort binary attributes, perhaps the library should 
fail in a more graceful manner.

Original issue reported on code.google.com by dfis...@gmail.com on 22 Mar 2013 at 8:47

GoogleCodeExporter commented 8 years ago
Sorted values are now checked to be Comparable.
If not ByteBuffer is used for byte[], otherwise #toString is used.
Fixed in r2696.

Original comment by dfis...@gmail.com on 12 Apr 2013 at 2:42