Skip to content

Commit

Permalink
Using explicit ProtectionDomain in dynamically loaded classes
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalkoren committed Nov 17, 2022
1 parent ff8be9a commit c57139e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 c57139e

Please sign in to comment.