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

java/net/httpclient/HttpsTunnelAuthTest.java incorrectly calls Thread::stop

XMLWordPrintable

      The test java/net/httpclient/HttpsTunnelAuthTest.java calls proxy::stop when closing servers at the end of the test. The issue here is that ProxyServer doesn't define a `stop` method like other servers, but defines a `close` method.
      However, because ProxyServer extends Thread, it does have an inherited deprecated `stop` method. But that's not what we want to call here.

      The test diagnosability could also be improved by adding `trace` to the log categories.

            pnima Prateek Nima
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: