I noticed this by accident while working on https://hibernate.atlassian.net/browse/HHH-17034. I will send a PR with a reproducer. May be related to https://hibernate.atlassian.net/browse/HHH-17034, or may be a problem in how Hibernate ORM uses Bytebuddy, or may simply be a bug in bytebuddy. The model below triggers a StackOverflowError upon bytecode enhancement:
The model:
|