HHH-10922 - Call on bytecode enhanced method trigger load of proxy
This commit is contained in:
parent
45adb05f5a
commit
92c1e63577
|
@ -57,6 +57,11 @@ public class JavassistLazyInitializer extends BasicLazyInitializer implements Me
|
||||||
final Method proceed,
|
final Method proceed,
|
||||||
final Object[] args) throws Throwable {
|
final Object[] args) throws Throwable {
|
||||||
if ( this.constructed ) {
|
if ( this.constructed ) {
|
||||||
|
// HHH-10922 - Internal calls to bytecode enhanced methods cause proxy to be initialized
|
||||||
|
if ( thisMethod.getName().startsWith( "$$_hibernate_" ) ) {
|
||||||
|
return proceed.invoke( proxy, args );
|
||||||
|
}
|
||||||
|
|
||||||
Object result;
|
Object result;
|
||||||
try {
|
try {
|
||||||
result = this.invoke( thisMethod, args, proxy );
|
result = this.invoke( thisMethod, args, proxy );
|
||||||
|
|
Loading…
Reference in New Issue