Playframework [2.6.6] 到 [2.7.0] 导致 CreationException

Playframework [2.6.6] to [2.7.0] causes CreationException

我尝试将我的 2.6.6 应用程序迁移到 2.7.0。我正在使用 Hibernate 4.2.3-Final。有人知道这些异常的原因吗?

GeneralDao.java:71 是:

@Inject
public GeneralDao(JPAApi jpaApi) {}

OnStartup.java:66 同上

CreationException: Unable to create injector, see the following errors

1) Error injecting constructor, javax.persistence.PersistenceException: Unable to configure EntityManagerFactory
  at play.db.jpa.DefaultJPAApi$JPAApiProvider.<init>(DefaultJPAApi.java:59)
  at play.db.jpa.DefaultJPAApi$JPAApiProvider.class(DefaultJPAApi.java:50)
  while locating play.db.jpa.JPAApi
    for the 1st parameter of dao.GeneralDao.<init>(GeneralDao.java:71)
    for the 2nd parameter of modules.OnStartup.<init>(OnStartup.java:66)
  at modules.OnStartupModule.configure(OnStartupModule.java:10) (via modules: com.google.inject.util.Modules$OverrideModule -> modules.OnStartupModule)
  while locating modules.OnStartup
Caused by: javax.persistence.PersistenceException: Unable to configure EntityManagerFactory
        [cut]
Caused by: java.lang.RuntimeException: Error while reading file:/R:/appDir/target/scala-2.12/classes/
        at org.hibernate.ejb.packaging.NativeScanner.getClassesInJar(NativeScanner.java:131)
        [cut]
Caused by: java.io.IOException: invalid constant type: 18
        [cut]

完整堆栈跟踪:https://pastebin.com/nEt1iavu

更新到 Hibernate 4.2.8-Final 解决了错误。

谢谢 Stephen C 的提示。