Refine "checkpoint on refresh" error handling
Closes gh-31096
This commit is contained in:
parent
bf2cdcb1f2
commit
c6c61d6485
|
|
@ -108,6 +108,9 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
|
||||||
if (!NativeDetector.inNativeImage() && ClassUtils.isPresent("org.crac.Core", getClass().getClassLoader())) {
|
if (!NativeDetector.inNativeImage() && ClassUtils.isPresent("org.crac.Core", getClass().getClassLoader())) {
|
||||||
this.cracResource = new CracDelegate().registerResource();
|
this.cracResource = new CracDelegate().registerResource();
|
||||||
}
|
}
|
||||||
|
else if (checkpointOnRefresh) {
|
||||||
|
throw new IllegalStateException("Checkpoint on refresh requires a CRaC-enabled JVM and 'org.crac:crac' on the classpath");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue