mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
move OpenJDK.getProtectionDomain into Classes.java
This way, apps can access the CodeSource of a class whether they're using the OpenJDK class library or the Avian one.
This commit is contained in:
@ -596,8 +596,6 @@ public final class Class <T> implements Type, AnnotatedElement {
|
||||
}
|
||||
|
||||
public ProtectionDomain getProtectionDomain() {
|
||||
Permissions p = new Permissions();
|
||||
p.add(new AllPermission());
|
||||
return new ProtectionDomain(null, p);
|
||||
return Classes.getProtectionDomain(vmClass);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user