HibernateProxy might need to be instantiated even with build-time enhancement

Description

In Quarkus we enforce build-time bytcode enhancement, and then configured Hibernate ORM to use org.hibernate.bytecode.internal.none.DisallowedProxyFactory (which I had created for this purpose - but apparently had not understood all implications).

We now have a reproducer able to produce the following stacktrace:

Environment

None

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure