Polish Native Support

- Remove unneeded deprecateion marker
- Add missing reflected class

Issue gh-16536
This commit is contained in:
Josh Cummings 2025-04-14 13:58:04 -06:00
parent 791feee355
commit f86c4ad383
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
4 changed files with 6 additions and 7 deletions

View File

@ -122,7 +122,6 @@ class WebMvcSecurityConfiguration implements WebMvcConfigurer, ApplicationContex
}
@Bean
@Deprecated
static BeanDefinitionRegistryPostProcessor springSecurityHandlerMappingIntrospectorBeanDefinitionRegistryPostProcessor() {
return new BeanDefinitionRegistryPostProcessor() {
@Override

View File

@ -303,17 +303,11 @@ public class WebSecurityConfiguration implements ImportAware {
* @param filters the Filters to delegate to. One of which must be
* FilterChainProxy.
*/
@Autowired
CompositeFilterChainProxy(List<? extends Filter> filters) {
this.doFilterDelegate = createDoFilterDelegate(filters);
this.springSecurityFilterChain = findFilterChainProxy(filters);
}
CompositeFilterChainProxy(Filter delegate, FilterChainProxy filterChain) {
this.doFilterDelegate = delegate;
this.springSecurityFilterChain = filterChain;
}
@Override
public void afterPropertiesSet() {
this.springSecurityFilterChain.afterPropertiesSet();

View File

@ -35,6 +35,9 @@ class WebSecurityConfigurationRuntimeHints implements RuntimeHintsRegistrar {
.registerType(TypeReference
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"),
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
hints.reflection()
.registerType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"),
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
}
}

View File

@ -51,6 +51,9 @@ class WebSecurityConfigurationRuntimeHintsTests {
.onType(TypeReference
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"))
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
assertThat(RuntimeHintsPredicates.reflection()
.onType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"))
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
}
}