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

DefaultRowSorter get/setComparator() are not correctly typed

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b70)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-b70, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      Method getComparator and setComparator() in DefaultRowSorter
      are types using raw types.

      Raw types must be used only by backward compatibiliy,
      the signature may used wildcard instead.

      The correct signature must be :
      Comparator<?> getComparator(int column)
      setComparator(int column, Comparator<?> comparator)

      REPRODUCIBILITY :
      This bug can be reproduced always.

            svioletsunw Scott Violet (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: