Re-examine getFreePort method in test infrastructure library

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: 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.

              Assignee:
              Hamlin Li
              Reporter:
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: