Skip to:
org.hibernate.osgi.OsgiClassLoader introduces a dependency on Java 7 in the form of using the method java.lang.ClassLoader#getClassLoadingLock which was added in Java 7
org.hibernate.osgi.OsgiClassLoader
java.lang.ClassLoader#getClassLoadingLock
See https://forum.hibernate.org/viewtopic.php?f=1&t=1029933
https://hibernate.atlassian.net/browse/HHH-7996#icft=HHH-7996 pulled in one method from ClassLoader – mistakenly used 7's version.
org.hibernate.osgi.OsgiClassLoader
introduces a dependency on Java 7 in the form of using the methodjava.lang.ClassLoader#getClassLoadingLock
which was added in Java 7See https://forum.hibernate.org/viewtopic.php?f=1&t=1029933