Skip to content

Commit ff8be9a

Browse files
committed
Attempt cloning protection domain from accessible object to avoid security manager clashes with mirror class.
1 parent 6fe45f7 commit ff8be9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/loading/ClassInjector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ protected static Initializable make() throws Exception {
11891189
.noNestMate()
11901190
.visit(new MemberRemoval().stripInvokables(any()))
11911191
.make()
1192-
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
1192+
.load(AccessibleObject.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER.with(AccessibleObject.class.getProtectionDomain()))
11931193
.getLoaded()
11941194
.getDeclaredField("override");
11951195
}

0 commit comments

Comments
 (0)