aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/src/test/java/org/aspectj/testing/harness/bridge/JavaRun.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/harness/bridge/JavaRun.java b/testing/src/test/java/org/aspectj/testing/harness/bridge/JavaRun.java
index 93ca14e70..fa3315396 100644
--- a/testing/src/test/java/org/aspectj/testing/harness/bridge/JavaRun.java
+++ b/testing/src/test/java/org/aspectj/testing/harness/bridge/JavaRun.java
@@ -600,6 +600,9 @@ public class JavaRun implements IAjcRun {
public static class Spec extends AbstractRunSpec {
static {
try {
+ // TODO: Deprecate the Security Manager for Removal, see https://openjdk.java.net/jeps/411.
+ // As of Java 18, the new API for blocking System.exit is not available yet, see
+ // https://bugs.openjdk.java.net/browse/JDK-8199704.
System.setSecurityManager(RunSecurityManager.ME);
} catch (Throwable t) {
System.err.println("JavaRun: Security manager set - no System.exit() protection");