From 0c411859eb702dbe55bd81a1778cc0f8caa57281 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 14 Jul 2021 07:46:17 +0200 Subject: [PATCH] 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 --- codec-http2/pom.xml | 2 ++ pom.xml | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/codec-http2/pom.xml b/codec-http2/pom.xml index c787a53c62..e9d74896ef 100644 --- a/codec-http2/pom.xml +++ b/codec-http2/pom.xml @@ -30,6 +30,8 @@ io.netty.codec.http2 + + --add-exports java.base/sun.security.x509=ALL-UNNAMED diff --git a/pom.xml b/pom.xml index 1cb438dee7..0a9b73e486 100644 --- a/pom.xml +++ b/pom.xml @@ -216,6 +216,9 @@ 15 + + + --illegal-access=deny ${argLine.java9.extras} true @@ -237,6 +240,9 @@ 14 + + + --illegal-access=deny ${argLine.java9.extras} true @@ -255,6 +261,9 @@ 13 + + + --illegal-access=deny ${argLine.java9.extras} true