HHH-6496 - Changed line 200 returning real object instead of proxy
This commit is contained in:
parent
62cea68007
commit
18b0325e51
|
@ -197,7 +197,7 @@ public class JavassistLazyInitializer extends BasicLazyInitializer implements Me
|
|||
}
|
||||
returnValue = thisMethod.invoke( target, args );
|
||||
}
|
||||
return returnValue == target ? proxy : returnValue;
|
||||
return returnValue == target && returnValue.getClass().isInstance(proxy) ? proxy : returnValue;
|
||||
}
|
||||
catch ( InvocationTargetException ite ) {
|
||||
throw ite.getTargetException();
|
||||
|
|
Loading…
Reference in New Issue