This commit is contained in:
Phillip Webb
2022-06-01 09:53:21 -07:00
parent 6d80723598
commit 13fba65638

View File

@@ -131,7 +131,7 @@ public class AotProcessor {
}
catch (InvocationTargetException ex) {
Throwable targetException = ex.getTargetException();
if (!(targetException instanceof SilentExitException)) {
if (!(targetException instanceof MainMethodSilentExitException)) {
throw (targetException instanceof RuntimeException runtimeEx) ? runtimeEx
: new RuntimeException(targetException);
}
@@ -246,7 +246,7 @@ public class AotProcessor {
@Override
public void postRun(SpringApplication application, ConfigurableApplicationContext context) {
throw new SilentExitException();
throw new MainMethodSilentExitException();
}
GenericApplicationContext getApplicationContext() {
@@ -259,7 +259,7 @@ public class AotProcessor {
* Internal exception used to prevent main method to continue once
* {@code SpringApplication#run} completes.
*/
private static class SilentExitException extends RuntimeException {
private static class MainMethodSilentExitException extends RuntimeException {
}