forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align PropertiesLauncher's close behavior with JarLauncher
Previously, PropertiesLauncher would close each archive that it iterated over when creating its ClassLoader. This was not aligned with JarLauncher's behaviour and left the ClassLoader with closed archives. The close was introduced in [1] and became more apparent following the change to fail operations on closed archives [2]. This commit updates Launcher to remove the close() that was added in [1]. This aligns the behavior of PropertiesLauncher with JarLauncher and ensures that the ClassLoader does not have entries backed by closed archives on its classpath. Fixes spring-projectsgh-23165 [1] spring-projects@ad72f86 [2] spring-projects@ed7a5db
- Loading branch information
1 parent
3e0096e
commit e7e77a9
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.38 KB
...ct/spring-boot-tools/spring-boot-loader/src/test/resources/nested-jars/nested-jar-app.jar
Binary file not shown.