Skip to content

Commit

Permalink
Merge pull request #1359 from eyalkoren/protection-domain
Browse files Browse the repository at this point in the history
Using explicit ProtectionDomain in dynamically loaded classes
  • Loading branch information
raphw committed Nov 17, 2022
2 parents 6fe45f7 + c57139e commit 8d17e3a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1189,7 +1189,7 @@ protected static Initializable make() throws Exception {
.noNestMate()
.visit(new MemberRemoval().stripInvokables(any()))
.make()
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER.with(AccessibleObject.class.getProtectionDomain()))
.getLoaded()
.getDeclaredField("override");
}
Expand Down Expand Up @@ -1952,7 +1952,7 @@ public Initializable run() {
.noNestMate()
.visit(new MemberRemoval().stripInvokables(any()))
.make()
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER.with(AccessibleObject.class.getProtectionDomain()))
.getLoaded()
.getDeclaredField("override");
}
Expand Down

0 comments on commit 8d17e3a

Please sign in to comment.