From 147476038bbfe5655af09c3be0a55ece5131a086 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 9 Jul 2018 13:17:51 +0200 Subject: [PATCH] HHH-12778 Register the cause when an exception occurs creating a proxy --- .../bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java b/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java index 5c3201f19c..600d375e42 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/BasicProxyFactoryImpl.java @@ -54,7 +54,7 @@ public class BasicProxyFactoryImpl implements BasicProxyFactory { return proxy; } catch (Throwable t) { - throw new HibernateException( "Unable to instantiate proxy instance" ); + throw new HibernateException( "Unable to instantiate proxy instance", t ); } }