[libbluray-devel] JSM: do not log failed ModifyThreadGroup

hpi1 git at videolan.org
Mon Mar 23 13:09:24 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 12:54:44 2015 +0200| [21612322431d4a2eb3c3b68d12a75df00237fd4e] | committer: hpi1

JSM: do not log failed ModifyThreadGroup

Image fetcher tries to use "main" thread group instead of Xlet thread group.
Failure is not fatal.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=21612322431d4a2eb3c3b68d12a75df00237fd4e
---

 src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
index 16e4f26..c330269 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJSecurityManager.java
@@ -76,6 +76,10 @@ final class BDJSecurityManager extends SecurityManager {
                 }
                 deny(perm);
             }
+            if (perm.implies(new RuntimePermission("modifyThreadGroup"))) {
+                /* do check here (no need to log failures) */
+                super.checkPermission(perm);
+            }
         }
 
         else if (perm instanceof PropertyPermission) {



More information about the libbluray-devel mailing list