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

Use of HashSet leads to undefined order in test output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: