HHH-6496 Added LOG

This commit is contained in:
Brett Meyer 2013-03-25 16:20:52 -04:00
parent a0bbf0d029
commit bb231dd378
1 changed files with 10 additions and 1 deletions

View File

@ -197,7 +197,16 @@ public class JavassistLazyInitializer extends BasicLazyInitializer implements Me
} }
returnValue = thisMethod.invoke( target, args ); returnValue = thisMethod.invoke( target, args );
} }
return returnValue == target && returnValue.getClass().isInstance(proxy) ? proxy : returnValue;
if ( returnValue == target ) {
if ( returnValue.getClass().isInstance(proxy) ) {
return proxy;
}
else {
LOG.narrowingProxy( returnValue.getClass() );
}
}
return returnValue;
} }
catch ( InvocationTargetException ite ) { catch ( InvocationTargetException ite ) {
throw ite.getTargetException(); throw ite.getTargetException();