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

Details

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

    Description

      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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: