[8u] RFR: 8274595: DisableRMIOverHTTPTest failed: connection refused

Alexey Bakhtin alexey at azul.com
Thu Sep 30 14:16:41 UTC 2021


Hi,

Please review the trivial change to sun/rmi/transport/tcp/DisableRMIOverHttp/DisableRMIOverHTTPTest.java:

Bug: https://bugs.openjdk.java.net/browse/JDK-8274595
Webrev: http://cr.openjdk.java.net/~abakhtin/8274595/webrev.v0/

The test fails because of URLConnection behaviour changes caused by JDK-8161016 [1]

Initially, the test was created on the base of BlockAcceptTest.java. Unlike BlockAcceptTest, DisableRMIOverHTTPTest does not use http proxy functionality but sets proxy via "http.proxyHost" system property.
HttpURLConnection in the JDK8u302 fallbacks to the direct connection in case of connection via proxy fails. As result, this test were passed using direct connection
JDK-8161016 changes the behavior of the HttpURLConnection: no fallback to the direct connection. As result, DisableRMIOverHTTPTest fails because of can no connection via dummy proxy.

Regards
Alexey

[1] - https://bugs.openjdk.java.net/browse/JDK-8161016


More information about the jdk8u-dev mailing list