ByteBuddy enhancement - Use MethodHandle lookup if available

Description

At the moment, we use the unsafe method, which, at some point of the JDK evolution, won't be available to us anymore.

Thus we need to migrate to using MethodHandles.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure