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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • fx2.1
    • Affects Version/s: fx2.0.2
    • Component/s: javafx
    • Environment:

      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)

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

              Created:
              Updated:
              Resolved:
              Imported: