Make ByteBuddy EnhancerImpl more closely match the semantics described in Enhancer javadoc

Description

The current org.hibernate.bytecode.enhance.internal.bytebuddy.EnhancerImpl implementation does not strictly adhere to the semantics described on org.hibernate.bytecode.enhance.spi.Enhancer.

Specifically:

  • it returns null when there is no need to enhance (e.g. it's already enhanced)

  • it doesn't throw any exception when it failed to enhance

Environment

None

Status

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

Priority

Major
Configure