Add comments
This commit is contained in:
@@ -80,6 +80,7 @@ public class SecurityAllowedTestCase extends TestCase {
|
|||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
// Restore, so other tests don't get stuffed up if a test
|
// Restore, so other tests don't get stuffed up if a test
|
||||||
// sets a custom security manager.
|
// 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);
|
System.setSecurityManager(oldSecMgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +98,7 @@ public class SecurityAllowedTestCase extends TestCase {
|
|||||||
CustomHashtable.class.getName());
|
CustomHashtable.class.getName());
|
||||||
final MockSecurityManager mySecurityManager = new MockSecurityManager();
|
final MockSecurityManager mySecurityManager = new MockSecurityManager();
|
||||||
mySecurityManager.addPermission(new AllPermission());
|
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);
|
System.setSecurityManager(mySecurityManager);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ public class SecurityForbiddenTestCase extends TestCase {
|
|||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
// Restore, so other tests don't get stuffed up if a test
|
// Restore, so other tests don't get stuffed up if a test
|
||||||
// sets a custom security manager.
|
// 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);
|
System.setSecurityManager(oldSecMgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,7 +130,7 @@ public class SecurityForbiddenTestCase extends TestCase {
|
|||||||
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
|
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
|
||||||
CustomHashtable.class.getName());
|
CustomHashtable.class.getName());
|
||||||
final MockSecurityManager mySecurityManager = new MockSecurityManager();
|
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);
|
System.setSecurityManager(mySecurityManager);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -182,7 +183,7 @@ public class SecurityForbiddenTestCase extends TestCase {
|
|||||||
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
|
LogFactory.HASHTABLE_IMPLEMENTATION_PROPERTY,
|
||||||
CustomHashtable.class.getName());
|
CustomHashtable.class.getName());
|
||||||
final MockSecurityManager mySecurityManager = new MockSecurityManager();
|
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);
|
System.setSecurityManager(mySecurityManager);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user