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

Use of HashSet leads to undefined order in test output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 16
    • tools
    • None

      The use of `HashSet` for a series of "tabClasses" in the `Table` class causes "unexpected/undefined" order of test output.

      Although we have not seen any instability, changing the collection can lead to unexpected test failures.

      By construction, the items in the class are unique, so there is no need to use a Set: a List is enough to guarantee a defined order.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: