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

Re-examine getFreePort method in test infrastructure library

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • other-libs
    • b05

        The getFreePort() method in the following test infrastructure classes need to be re-examined:

        test/lib/jdk/test/lib/Utils.java
        test/jdk/lib/testlibrary/jdk/testlibrary/Utils.java

        The initial sleep makes it too slow for tests that need to invoke it hundreds of times. The exception handling is also confusing as getLocalPort() can never return -1.

              mli Hamlin Li
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: