Skip to content

Commit 9662542

Browse files
committed
Merge pull request spring-projects#44426 from izeye
* pr/44426: Remove NoSuchMethodError guard for Context.setCreateUploadTargets() Closes spring-projectsgh-44426
2 parents 5e57f1b + 7baadb5 commit 9662542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ protected void prepareContext(Host host, ServletContextInitializer[] initializer
253253
context.setParentClassLoader(parentClassLoader);
254254
resetDefaultLocaleMapping(context);
255255
addLocaleMappings(context);
256-
ignoringNoSuchMethodError(() -> context.setCreateUploadTargets(true));
256+
context.setCreateUploadTargets(true);
257257
configureTldPatterns(context);
258258
WebappLoader loader = new WebappLoader();
259259
loader.setLoaderInstance(new TomcatEmbeddedWebappClassLoader(parentClassLoader));

0 commit comments

Comments
 (0)