We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d38cc9a commit f3d3d01Copy full SHA for f3d3d01
src/com/rabbitmq/client/impl/Environment.java
@@ -1,13 +1,15 @@
1
package com.rabbitmq.client.impl;
2
3
+import java.security.AccessControlException;
4
+
5
/**
6
* Infers information about the execution environment, e.g.
7
* security permissions.
8
*/
9
class Environment {
10
public static boolean isAllowedToModifyThreads() {
- SecurityManager sm = new SecurityManager();
11
try {
12
+ SecurityManager sm = new SecurityManager();
13
sm.checkPermission(new RuntimePermission("modifyThread"));
14
sm.checkPermission(new RuntimePermission("modifyThreadGroup"));
15
return true;
0 commit comments