java.lang.VerifyError from compile-time enhanced @Entity

Description

Add this to the https://github.com/spring-projects/spring-petclinic:

If you also change the parent pom version to spring boot 2.2.0.M4 you will get Hibernate 5.4. I also tried with 5.4.3.Final by manually setting hibernate.version. In all cases you get a java.lang.VerifyError at runtime (e.g. tests all fail). Example:

I found I can "fix" it by removing the <enableAssociationManagement>true</enableAssociationManagement>, so I guess that's a workaround.

Environment

Linux, Java 8 (and 11).

Assignee

Luis Barreiro

Reporter

David Syer

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure