Refine the CGLIB error message with native

See gh-34370
This commit is contained in:
Sébastien Deleuze 2025-02-06 09:15:45 +01:00
parent 16ec08aec8
commit dba4881318
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ abstract public class AbstractClassGenerator<T> implements ClassGenerator {
// SPRING PATCH BEGIN
if (inNativeImage) {
throw new UnsupportedOperationException("CGLIB runtime enhancement not supported on native image. " +
"Make sure to enable Spring AOT processing in order to pre-generate this class: " + getClassName());
"Make sure to enable Spring AOT processing to pre-generate '" + getClassName() + "' at build time.");
}
// SPRING PATCH END
byte[] b = strategy.generate(this);