Describe the bug https://github.com/spring-projects/spring-framework/commit/4750a9430cdae9156d1e7fc32cec2c11ba2b8514#diff-a5707143edb0c47271e3310ef73b1de251fff6d01279a1fc3bed30a4df54f13e breaks main branch build.
/spring-security/web/src/main/java/org/springframework/security/web/server/WebFilterChainProxy.java:55: error: incompatible types: invalid constructor reference
.map((filters) -> new FilteringWebHandler(chain::filter, filters)).map(DefaultWebFilterChain::new)
^
no suitable constructor found for DefaultWebFilterChain(FilteringWebHandler)
constructor DefaultWebFilterChain.DefaultWebFilterChain(WebHandler,List<WebFilter>) is not applicable
(actual and formal argument lists differ in length)
constructor DefaultWebFilterChain.DefaultWebFilterChain(List<WebFilter>,WebHandler,WebFilter,DefaultWebFilterChain) is not applicable
(actual and formal argument lists differ in length)
To Reproduce ./gradlew :spring-security-web:compileJava
Expected behavior main branch should compile
Comment From: igorpele
/spring-security/config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java:53: error: cannot find symbol
import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
^
symbol: class AbstractWebSocketMessageBrokerConfigurer
location: package org.springframework.web.socket.config.annotation
/spring-security/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java:3237: error: constructor HandlerMappingIntrospector in class HandlerMappingIntrospector cannot be applied to given types;
HandlerMappingIntrospector introspector = new HandlerMappingIntrospector(getContext());
^
required: no arguments
found: ApplicationContext
reason: actual and formal argument lists differ in length
/spring-security/config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java:110: error: cannot find symbol
registration.setInterceptors(this.context.getBean(SecurityContextChannelInterceptor.class));
^
symbol: method setInterceptors(SecurityContextChannelInterceptor)
location: variable registration of type ChannelRegistration
/spring-security/config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java:112: error: cannot find symbol
registration.setInterceptors(this.context.getBean(CsrfChannelInterceptor.class));
^
symbol: method setInterceptors(CsrfChannelInterceptor)
location: variable registration of type ChannelRegistration
/spring-security/config/src/main/java/org/springframework/security/config/annotation/web/socket/AbstractSecurityWebSocketMessageBrokerConfigurer.java:115: error: cannot find symbol
registration.setInterceptors(inboundChannelSecurity);
^
symbol: method setInterceptors(ChannelSecurityInterceptor)
location: variable registration of type ChannelRegistration
Comment From: marcusdacoregio
Hi @igorpele, thanks for reaching out.
The commit https://github.com/spring-projects/spring-security/commit/25feedb8701ddac92a239376ccbcf634f54707e2 fixes the code that has been broken by the removals.