Skip to content

Commit

Permalink
JPMS improvements: use JPMS Lookup class in other places
Browse files Browse the repository at this point in the history
  • Loading branch information
OndroMih committed Aug 28, 2024
1 parent daf8de2 commit 7cd0dc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Class<?> generateSerializableSubclass() {
cw.visitEnd();

PrivilegedAction<Class<?>> action =
() -> defineClass(loader, subClassName, cw.toByteArray(), superClass.getProtectionDomain());
() -> defineClass(loader, superClass, getPackageName(subClassName), subClassName, cw.toByteArray());

return AccessController.doPrivileged(action);
}
Expand Down

0 comments on commit 7cd0dc3

Please sign in to comment.