Skip to content

Commit 16ec08a

Browse files
committed
Provide a more actionable CGLIB error message with native
Closes gh-34370
1 parent 462c2bd commit 16ec08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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 include a pre-generated class on the classpath instead: " + getClassName());
363+
"Make sure to enable Spring AOT processing in order to pre-generate this class: " + getClassName());
364364
}
365365
// SPRING PATCH END
366366
byte[] b = strategy.generate(this);

0 commit comments

Comments
 (0)