Skip to content

Commit

Permalink
Expose context class for interface-based CGLIB proxies as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Mar 26, 2020
1 parent 4715ad2 commit 818d18a
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -259,6 +259,9 @@ public Enhancer() {
public void setSuperclass(Class superclass) {
if (superclass != null && superclass.isInterface()) {
setInterfaces(new Class[]{superclass});
// SPRING PATCH BEGIN
setContextClass(superclass);
// SPRING PATCH END
}
else if (superclass != null && superclass.equals(Object.class)) {
// affects choice of ClassLoader
Expand Down

0 comments on commit 818d18a

Please sign in to comment.