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

javafx.scene.control.SelectionModel<T> has ambiguous select(int) and select(T) in case T is Integer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • fx2.1
    • fx2.0.2
    • javafx
    • Every environment

      javafx.scene.control.SelectionModel<T> has ambiguous select(int) and select(T) in case T is Integer.
      E.g.
      SelectionModel<Integer> sm = ...
      sm.select(2); // Meaning of this: select item with index 2 or select item with value 2.

      My suggestion is to rename select(T) to selectItem(t)

            jgiles Jonathan Giles
            mfeldmanjfx Michael Feldman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: