aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc199/Bugs199Tests.java4
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc199/ajc199.xml9
2 files changed, 13 insertions, 0 deletions
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 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs199/add_exports" title="use --add-exports" vm="9">
+ <compile files="Application.java" options="-11 --add-exports java.base/sun.security.x509=ALL-UNNAMED" />
+ <run class="Application" vmargs="--add-exports java.base/sun.security.x509=ALL-UNNAMED">
+ <stdout>
+ <line text="java.security.cert.CertificateParsingException: java.io.IOException"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>