You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2dc3660a32
Previously, if an application’s main method threw an exception, MainMethodRunner would catch the exception and call System.exit(1). This meant that the JVM would exit, irrespective of whether or not any non-daemon threads were running. In contrast, when an application’s main method was invoked directly (in an IDE, for example) the JVM would not exit if one or more non-daemon threads were running. This is standard JVM behaviour that we should be consistent with in the launcher. This commit updates MainMethodRunner to wrap any exception thrown by an application’s main method in a RuntimeException and rethrow it. This alllows the JVM to handle the exception and use its normal rules for deciding whether or not it should exit. Closes gh-4984 |
9 years ago | |
---|---|---|
.. | ||
spring-boot-antlib | 9 years ago | |
spring-boot-configuration-metadata | 9 years ago | |
spring-boot-configuration-processor | 9 years ago | |
spring-boot-gradle-plugin | 9 years ago | |
spring-boot-loader | 9 years ago | |
spring-boot-loader-tools | 9 years ago | |
spring-boot-maven-plugin | 9 years ago | |
pom.xml | 9 years ago |