SelfSignedCertificate should work in http2 tests (#11486)
Motivation: We need to add `--add-exports java.base/sun.security.x509=ALL-UNNAMED` when running the tests for codec-http2 as some of the tests use SelfSignedCertificate. Modifications: - Add `--add-exports java.base/sun.security.x509=ALL-UNNAMED` when running the tests for codec-http2 - Ensure we export correct when running with JDK12, 13, 14 and 15 as well Result: No more tests failure due not be able to access classes
This commit is contained in:
parent
70b3315181
commit
0c411859eb
@ -30,6 +30,8 @@
|
||||
|
||||
<properties>
|
||||
<javaModuleName>io.netty.codec.http2</javaModuleName>
|
||||
<!-- Needed for SSL tests as these use the SelfSignedCertificate -->
|
||||
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
9
pom.xml
9
pom.xml
@ -216,6 +216,9 @@
|
||||
<jdk>15</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<argLine.java9.extras />
|
||||
<!-- Export some stuff which is used during our tests -->
|
||||
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
||||
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||
<argLine.alpnAgent />
|
||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||
@ -237,6 +240,9 @@
|
||||
<jdk>14</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<argLine.java9.extras />
|
||||
<!-- Export some stuff which is used during our tests -->
|
||||
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
||||
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||
<argLine.alpnAgent />
|
||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||
@ -255,6 +261,9 @@
|
||||
<jdk>13</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<argLine.java9.extras />
|
||||
<!-- Export some stuff which is used during our tests -->
|
||||
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
||||
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||
<argLine.alpnAgent />
|
||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||
|
Loading…
Reference in New Issue
Block a user