From 8a933427ec77859a40c5cd9c55226bbe6f9d736a Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sun, 27 Mar 2022 12:57:19 +0700 Subject: Add test case + experimental fix for AJC option '--add-exports' I am expecting the test case to pass, but other tests to fail. This temporary commit is meant to create feedback from GitHub CI test runs. Signed-off-by: Alexander Kriegisch --- tests/bugs199/add_exports/Application.java | 17 +++++++++++++++++ .../org/aspectj/systemtest/ajc199/Bugs199Tests.java | 4 ++++ .../resources/org/aspectj/systemtest/ajc199/ajc199.xml | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 tests/bugs199/add_exports/Application.java (limited to 'tests') diff --git a/tests/bugs199/add_exports/Application.java b/tests/bugs199/add_exports/Application.java new file mode 100644 index 000000000..88bd177aa --- /dev/null +++ b/tests/bugs199/add_exports/Application.java @@ -0,0 +1,17 @@ +import sun.security.x509.X509CertInfo; + +import java.security.cert.CertificateParsingException; + +/** + * https://github.com/mojohaus/aspectj-maven-plugin/issues/139 + */ +public class Application { + public static void main(String[] args) { + try { + new X509CertInfo(new byte[0]); + } + catch (CertificateParsingException e) { + System.out.println(e); + } + } +} diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc199/Bugs199Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc199/Bugs199Tests.java index b83448935..a9f7f3023 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc199/Bugs199Tests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc199/Bugs199Tests.java @@ -61,6 +61,10 @@ public class Bugs199Tests extends XMLBasedAjcTestCase { runTest("asynchronous proceed for nested around-advice (native, thread pool)"); } + public void testAddExports() { + runTest("use --add-exports"); + } + public static Test suite() { return XMLBasedAjcTestCase.loadSuite(Bugs199Tests.class); } diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc199/ajc199.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc199/ajc199.xml index 7baeea086..9a9ac2d47 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc199/ajc199.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc199/ajc199.xml @@ -515,4 +515,13 @@ + + + + + + + + + -- cgit v1.2.3