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

javax_swing.RowFilter.ComparisonType.values() method behaviour is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows_xp

      Description

      In spec there is written:

      Enum Constant Summary
      *AFTER*
                Indicates that entries with a value after the supplied value should be included.
      *BEFORE*
                Indicates that entries with a value before the supplied value should be included.
      EQUAL
                Indicates that entries with a value equal to the supplied value should be included.
      NOT_EQUAL
                Indicates that entries with a value not equal to the supplied value should be included.

      public static final RowFilter.ComparisonType[] values()
          Returns an array containing the constants of this enum type, *in the order they're declared.*

      But values are returned in the following order:
      *BEFORE*
      *AFTER*
      EQUAL
      NOT_EQUAL

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sseligmasunw Scott Seligman (Inactive)
              Reporter:
              ynovozhi Yulia Novozhilova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: