Skip to content

Commit

Permalink
Merge pull request #106 from erkieh/HotswapAgent-ISSUE-103-FIX
Browse files Browse the repository at this point in the history
fix for #103
  • Loading branch information
edudant committed Jan 15, 2016
2 parents 599de98 + 6baf96b commit 262a568
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ private Object create(Object beanFactry, Object bean, Class<?>[] paramClasses, O
}

private Method getProxyCreationMethod(Object bean) throws CannotCompileException, NotFoundException {
String beanClassName = bean.getClass().getName();
if (beanClassName.contains("$$EnhancerBySpringCGLIB")) {
if (getCp(loader).find("org.springframework.cglib.proxy.MethodInterceptor") != null) {
if (createSpringProxy == null) {
synchronized (springLock) {
if (createSpringProxy == null) {
Expand All @@ -107,7 +106,7 @@ private Method getProxyCreationMethod(Object bean) throws CannotCompileException
}
}
return createSpringProxy;
} else if (beanClassName.contains("$$EnhancerByCGLIB")) {
} else if (getCp(loader).find("net.sf.cglib.proxy.MethodInterceptor") != null) {
if (createCglibProxy == null) {
synchronized (cglibLock) {
if (createCglibProxy == null) {
Expand Down

0 comments on commit 262a568

Please sign in to comment.