mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-25 21:04:51 +00:00
HHH-12328 ByteBuddyInterceptor#intercept should not wrap Exception types
This commit is contained in:
parent
0fc4294fed
commit
e25cf6d76b
@ -47,13 +47,7 @@ public ByteBuddyInterceptor(
|
||||
|
||||
@Override
|
||||
public Object intercept(Object proxy, Method thisMethod, Object[] args) throws Throwable {
|
||||
Object result;
|
||||
try {
|
||||
result = this.invoke( thisMethod, args, proxy );
|
||||
}
|
||||
catch (Throwable t) {
|
||||
throw t instanceof RuntimeException ? t : new Exception( t.getCause() );
|
||||
}
|
||||
Object result = this.invoke( thisMethod, args, proxy );
|
||||
if ( result == INVOKE_IMPLEMENTATION ) {
|
||||
Object target = getImplementation();
|
||||
final Object returnValue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user