Skip to content

Commit

Permalink
Upgrade to Jetty 12.0.9
Browse files Browse the repository at this point in the history
Closes gh-40743
  • Loading branch information
wilkinsona committed May 13, 2024
1 parent 254ff47 commit bc43656
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spring-boot-project/spring-boot-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ bom {
]
}
}
library("Jetty", "12.0.8") {
library("Jetty", "12.0.9") {
group("org.eclipse.jetty.ee10") {
imports = [
"jetty-ee10-bom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.springframework.boot.web.embedded.jetty;

import org.eclipse.jetty.ee10.servlet.ServletHandler;
import org.eclipse.jetty.ee10.webapp.ClassMatcher;
import org.eclipse.jetty.ee10.webapp.WebAppContext;
import org.eclipse.jetty.util.ClassMatcher;

/**
* Jetty {@link WebAppContext} used by {@link JettyWebServer} to support deferred
Expand All @@ -29,8 +29,7 @@
class JettyEmbeddedWebAppContext extends WebAppContext {

JettyEmbeddedWebAppContext() {
setServerClassMatcher(new ClassMatcher("org.springframework.boot.loader."));
// setTempDirectory(WebInfConfiguration.getCanonicalNameForWebAppTmpDir(this));
setHiddenClassMatcher(new ClassMatcher("org.springframework.boot.loader."));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.eclipse.jetty.ee10.servlet.ErrorPageErrorHandler;
import org.eclipse.jetty.ee10.servlet.ServletHolder;
import org.eclipse.jetty.ee10.webapp.AbstractConfiguration;
import org.eclipse.jetty.ee10.webapp.ClassMatcher;
import org.eclipse.jetty.ee10.webapp.Configuration;
import org.eclipse.jetty.ee10.webapp.WebAppContext;
import org.eclipse.jetty.server.AbstractConnector;
Expand All @@ -55,6 +54,7 @@
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.SslConnectionFactory;
import org.eclipse.jetty.util.ClassMatcher;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
import org.eclipse.jetty.util.thread.ThreadPool;
Expand Down Expand Up @@ -196,8 +196,8 @@ void jettyConfigurations() throws Exception {
Configuration mockConfiguration(Class<? extends Configuration> type) {
Configuration mock = mock(type);
ClassMatcher classMatcher = new ClassMatcher();
given(mock.getSystemClasses()).willReturn(classMatcher);
given(mock.getServerClasses()).willReturn(classMatcher);
given(mock.getProtectedClasses()).willReturn(classMatcher);
given(mock.getHiddenClasses()).willReturn(classMatcher);
return mock;
}

Expand Down

0 comments on commit bc43656

Please sign in to comment.