Hello, when application is using Hibernate 5.0.0.Beta1 and compiled with 1.7 target but run under Java 8 the following exception could appear:
The reason is at line 208 in SessionFactoryImpl
private final transient ConcurrentHashMap<EntityNameResolver,Object> entityNameResolvers = new ConcurrentHashMap<EntityNameResolver, Object>();
The definition should be Map interface, not
ConcurrentHashMap
class.
|