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

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

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: