If the comparator is called with different types (e.g. String and Integer) it will fail because it will call String.compareTo(). The check to use compareable would at least have to check if obj2 is assignable to obj1s type.
-
Jonathan Giles
-
Tom Schindl
- Votes:
-
0 Vote for this issue
- Watchers:
-
0 Start watching this issue
- Created:
- Updated:
- Resolved:
- Imported: