RFR(s): 8166791: Fix module dependencies for networking component tests
Sergei Kovalev
sergei.kovalev at oracle.com
Mon Oct 3 13:33:39 UTC 2016
Hi Chris,
Thank you for looking this.
03.10.16 16:05, Chris Hegarty wrote:
> Sergei,
>
> On 03/10/16 11:08, Sergei Kovalev wrote:
>> Resending this for review
>>
>>
>> 27.09.16 18:44, Sergei Kovalev wrote:
>>> Hi team,
>>>
>>> Could you please review small fix for regression tests.
>>>
>>> BugID: https://bugs.openjdk.java.net/browse/JDK-8166791
>>> WebRev: http://cr.openjdk.java.net/~skovalev/8166791/webrev.00/
>
>>> Issue: Severl network related tests failed in case of using
>>> "--limit-modules java.base" command line option.
>>>
>>> The test java/net/httpclient/http2/ErrorTest.java should declare
>>> dependencies on 'jdk.security.auth' module.
>
> I cannot find the reason why you think this module needs
> jdk.security.auth, can you please explain.
SSL engin requires security provider. Its implementation located in
jdk.security.auth. In case no jdk module added we getting an exception:
test ErrorTest.test(): failure
java.lang.IllegalArgumentException: Cannot support
TLS_KRB5_WITH_3DES_EDE_CBC_SHA with currently installed providers
at
sun.security.ssl.CipherSuiteList.<init>(java.base at 9-ea/CipherSuiteList.java:81)
at
sun.security.ssl.SSLEngineImpl.setEnabledCipherSuites(java.base at 9-ea/SSLEngineImpl.java:2087)
at
javax.net.ssl.SSLEngine.setSSLParameters(java.base at 9-ea/SSLEngine.java:1269)
at
sun.security.ssl.SSLEngineImpl.setSSLParameters(java.base at 9-ea/SSLEngineImpl.java:2166)
...
>
>>> java/net/httpclient/security/Driver.java should depend oh
>>> 'java.httpclient' and 'jdk.httpserver'.
>>>
>>> java/net/spi/URLStreamHandlerProvider/Basic.java and
>>> sun/net/www/protocol/jar/MultiReleaseJarURLConnection.java have
>>> declaration of dependency on 'java.compiler' but should be
>>> 'jdk.compiler'.
>
> They should require both java.compiler and jdk.compiler, no?
You are right. The tests requires java.compiler for compilation and
jdk.compiler for execution. I've done appropriate changes. Please take a
look at:
http://cr.openjdk.java.net/~skovalev/8166791/webrev.01/
>
>>> From the test java/net/httpclient/http2/HpackDriver.java extracted one
>>> part that depends on 'jdk.localedata':
>>> java/net/httpclient/http2/HpackDriverHeaderTable.java because other
>>> part don't have any extra dependencies and could be executed in
>>> general case.
>
> -Chris.
>
--
With best regards,
Sergei
More information about the net-dev
mailing list