Skip to content

Commit

Permalink
Issue #23616 Fixed issue with generating proxies using generated classes
Browse files Browse the repository at this point in the history
- we have to use deprecated methods yet for a while ...
  • Loading branch information
dmatej committed Sep 27, 2021
1 parent edd897c commit e9a30b8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,10 @@ static synchronized Class<?> generateAndLoad(final ClassGeneratorFactory generat
}

if (System.getSecurityManager() == null) {
return Wrapper._generate(generator.getAnchorClass(), props);
return Wrapper._generate(loader, generator.getAnchorClass().getProtectionDomain(), props);
}
PrivilegedAction<Class<?>> action = () -> Wrapper._generate(generator.getAnchorClass(), props);
PrivilegedAction<Class<?>> action = () ->
Wrapper._generate(loader, generator.getAnchorClass().getProtectionDomain(), props);
return AccessController.doPrivileged(action);
}

Expand Down

0 comments on commit e9a30b8

Please sign in to comment.