Merge branch '2.3.x'

This commit is contained in:
Phillip Webb
2020-06-11 13:26:44 -07:00
2 changed files with 8 additions and 9 deletions

View File

@@ -389,6 +389,10 @@ class PropertiesLauncherTests {
this.launcher.launch(new String[0]);
}
catch (Exception ex) {
// Expected ClassNotFoundException
LaunchedURLClassLoader classLoader = (LaunchedURLClassLoader) Thread.currentThread()
.getContextClassLoader();
classLoader.close();
}
URL resource = new URL("jar:" + jarFile.toURI() + "!/nested.jar!/3.dat");
byte[] bytes = FileCopyUtils.copyToByteArray(resource.openStream());