Provide a more actionable CGLIB error message with native

Closes gh-34370
This commit is contained in:
Sébastien Deleuze 2025-02-05 17:47:25 +01:00
parent 462c2bd538
commit 16ec08aec8
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 include a pre-generated class on the classpath instead: " + getClassName());
"Make sure to enable Spring AOT processing in order to pre-generate this class: " + getClassName());
}
// SPRING PATCH END
byte[] b = strategy.generate(this);