• Andy Wilkinson's avatar
    Allow restart to be enabled when CL not named AppClassLoader · a95a7e3d
    Andy Wilkinson authored
    Previously, the restart initializer that enables restart when
    -Dspring.devtools.restart.enabled=true is set had no effect when the
    ClassLoader's name did not contain AppClassLoader. This commit updates
    RestartApplicationListener to use the correct RestartInitializer when
    the system property has forcibly enabled restart.
    
    When restart is enabled a SilentExitException is thrown and it should be
    caught and handled by the SilentExitExceptionHandler. When the
    application is invoked via one of the loader's LauncherClasses
    reflection is used and this exception becomes wrapped in an
    InvocationTargetEception. Previously, this wrapping prevented
    SilentExitExceptionHandler from handling the exception. This commit
    updates the handler to look for an InvocationTargetException with a
    SilentExitException target in addition to continuing to look for a
    SilentExitException directly.
    
    Fixes gh-24797
    a95a7e3d
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...