Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8124328

TableColumnBase.DEFAULT_COMPARATOR can lead to CCE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • None

      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.

            jgiles Jonathan Giles
            tschindl Tom Schindl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: