When a CGLIB configuration class is processed, we switch the executable to be on the proxy, rather on the user class. However, the bean definition, and the defined executable is on the user class. This inconsistency leads to a problem in a native image as the relevant hint is registered on the proxy, but the code actually uses the user class.

Comment From: snicoll

It looks like this should have been closed by e749cd1