1
0

Add comments

This commit is contained in:
Gary Gregory
2024-08-14 13:47:55 -04:00
parent 7b686552c3
commit 1d1b8adca8
2 changed files with 5 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ public class SecurityAllowedTestCase extends TestCase {
public void tearDown() {
// Restore, so other tests don't get stuffed up if a test
// sets a custom security manager.
// Java 22: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
System.setSecurityManager(oldSecMgr);
}
@@ -97,6 +98,7 @@ public class SecurityAllowedTestCase extends TestCase {
CustomHashtable.class.getName());
final MockSecurityManager mySecurityManager = new MockSecurityManager();
mySecurityManager.addPermission(new AllPermission());
// Java 22: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
System.setSecurityManager(mySecurityManager);
try {

View File

@@ -112,6 +112,7 @@ public class SecurityForbiddenTestCase extends TestCase {
public void tearDown() {
// Restore, so other tests don't get stuffed up if a test
// sets a custom security manager.
// Java 22: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
System.setSecurityManager(oldSecMgr);
}
@@ -129,7 +130,7 @@ public class SecurityForbiddenTestCase extends TestCase {
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
CustomHashtable.class.getName());
final MockSecurityManager mySecurityManager = new MockSecurityManager();
// Java 22: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
System.setSecurityManager(mySecurityManager);
try {
@@ -182,7 +183,7 @@ public class SecurityForbiddenTestCase extends TestCase {
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
CustomHashtable.class.getName());
final MockSecurityManager mySecurityManager = new MockSecurityManager();
// Java 22: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
System.setSecurityManager(mySecurityManager);
try {