Skip to content

Commit 756a2d6

Browse files
committed
Refine the CGLIB error message with native
See spring-projectsgh-34370
1 parent 16ec08a commit 756a2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/cglib/core/AbstractClassGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ protected Class generate(ClassLoaderData data) {
360360
// SPRING PATCH BEGIN
361361
if (inNativeImage) {
362362
throw new UnsupportedOperationException("CGLIB runtime enhancement not supported on native image. " +
363-
"Make sure to enable Spring AOT processing in order to pre-generate this class: " + getClassName());
363+
"Make sure to enable Spring AOT processing to pre-generate '" + getClassName() + "' at build-time.");
364364
}
365365
// SPRING PATCH END
366366
byte[] b = strategy.generate(this);

0 commit comments

Comments
 (0)