Skip to content

Commit

Permalink
Refine the CGLIB error message with native
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Feb 6, 2025
1 parent 16ec08a commit dba4881
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ protected Class generate(ClassLoaderData data) {
// 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);
Expand Down

0 comments on commit dba4881

Please sign in to comment.