Since i do not have gradle installed on my machine, i did not do a complete test / build scenario, but i just introduced this little adjustment on hibernate 5.4.1. following my git patch suggestion for this issue: Index: hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/HibernateMethodLookupDispatcher.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== — hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/HibernateMethodLookupDispatcher.java (revision 4e06de2708b885d76bf065f329ba8c7e40672f9d) +++ hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/HibernateMethodLookupDispatcher.java (date 1550759524719) @@ -175,7 +175,7 @@ private static class SecurityActions extends SecurityManager { private Class<?> getCallerClass() { - return getClassContext()[7]; + return getClassContext()[8]; } } } |