Improve performance of Tomcat 'jar:war:file' URLs

Update jar `Handler` fallback logic to directly support Tomcat
'jar:war:file' URLs. This commit allows contents to be accessed without
the JDK needing to extracted the nested jar to the temporary folder.

Closes gh-24553
This commit is contained in:
Phillip Webb
2020-12-17 21:47:26 -08:00
parent e0522d9d1c
commit 82791b4eda
3 changed files with 53 additions and 2 deletions

View File

@@ -59,8 +59,9 @@ class LoaderIntegrationTests {
@Test
void readUrlsWithoutWarning() {
System.out.println(output.toUtf8String());
assertThat(output.toUtf8String()).contains(">>>>> 287649 BYTES from").doesNotContain("WARNING:")
.doesNotContain("illegal");
.doesNotContain("illegal").doesNotContain("jar written to temp");
}
}