HHH-6496 - Changed line 200 returning real object instead of proxy
This commit is contained in:
parent
d3867e9c1b
commit
a0bbf0d029
|
@ -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