Provide a more actionable CGLIB error message with native
Closes gh-34370
This commit is contained in:
parent
462c2bd538
commit
16ec08aec8
|
@ -360,7 +360,7 @@ abstract public class AbstractClassGenerator<T> implements ClassGenerator {
|
||||||
// SPRING PATCH BEGIN
|
// SPRING PATCH BEGIN
|
||||||
if (inNativeImage) {
|
if (inNativeImage) {
|
||||||
throw new UnsupportedOperationException("CGLIB runtime enhancement not supported on native image. " +
|
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
|
// SPRING PATCH END
|
||||||
byte[] b = strategy.generate(this);
|
byte[] b = strategy.generate(this);
|
||||||
|
|
Loading…
Reference in New Issue