HHH-6496 Added LOG

This commit is contained in:
Brett Meyer 2013-03-25 16:20:52 -04:00
parent 18b0325e51
commit 941579da74
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 );
}
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 ) {
throw ite.getTargetException();