Commit 6d0f29c4 authored by Petri Hintukainen's avatar Petri Hintukainen

BDJSecurityManager: override checkPackageAccess() for Java 11

parent 976d88f0
......@@ -217,6 +217,31 @@ final class BDJSecurityManager extends SecurityManager {
}
}
/*
* Allow package access (Java 11)
*/
private static String pkgPrefixes[] = {
"javax.media" ,
"javax.tv",
"javax.microedition",
"org.davic",
"org.dvb",
"org.havi",
"org.bluray",
"org.blurayx",
"com.aacsla.bluray",
};
public void checkPackageAccess(String pkg) {
for (int i = 0; i < pkgPrefixes.length; i++)
if (pkg.startsWith(pkgPrefixes[i]))
return;
super.checkPackageAccess(pkg);
}
/*
*
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment