Skip to content

Commit f3d3d01

Browse files
Security manager instantiation is also prohibited on GAE
1 parent d38cc9a commit f3d3d01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/rabbitmq/client/impl/Environment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package com.rabbitmq.client.impl;
22

3+
import java.security.AccessControlException;
4+
35
/**
46
* Infers information about the execution environment, e.g.
57
* security permissions.
68
*/
79
class Environment {
810
public static boolean isAllowedToModifyThreads() {
9-
SecurityManager sm = new SecurityManager();
1011
try {
12+
SecurityManager sm = new SecurityManager();
1113
sm.checkPermission(new RuntimePermission("modifyThread"));
1214
sm.checkPermission(new RuntimePermission("modifyThreadGroup"));
1315
return true;

0 commit comments

Comments
 (0)