Skip to content

Commit f86c4ad

Browse files
committed
Polish Native Support
- Remove unneeded deprecateion marker - Add missing reflected class Issue gh-16536
1 parent 791feee commit f86c4ad

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebMvcSecurityConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public void setApplicationContext(ApplicationContext applicationContext) throws
122122
}
123123

124124
@Bean
125-
@Deprecated
126125
static BeanDefinitionRegistryPostProcessor springSecurityHandlerMappingIntrospectorBeanDefinitionRegistryPostProcessor() {
127126
return new BeanDefinitionRegistryPostProcessor() {
128127
@Override

config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,11 @@ static class CompositeFilterChainProxy extends FilterChainProxy {
303303
* @param filters the Filters to delegate to. One of which must be
304304
* FilterChainProxy.
305305
*/
306-
@Autowired
307306
CompositeFilterChainProxy(List<? extends Filter> filters) {
308307
this.doFilterDelegate = createDoFilterDelegate(filters);
309308
this.springSecurityFilterChain = findFilterChainProxy(filters);
310309
}
311310

312-
CompositeFilterChainProxy(Filter delegate, FilterChainProxy filterChain) {
313-
this.doFilterDelegate = delegate;
314-
this.springSecurityFilterChain = filterChain;
315-
}
316-
317311
@Override
318312
public void afterPropertiesSet() {
319313
this.springSecurityFilterChain.afterPropertiesSet();

config/src/main/java/org/springframework/security/config/aot/hint/WebSecurityConfigurationRuntimeHints.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
3535
.registerType(TypeReference
3636
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"),
3737
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
38+
hints.reflection()
39+
.registerType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"),
40+
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
3841
}
3942

4043
}

config/src/test/java/org/springframework/security/config/aot/hint/WebSecurityConfigurationRuntimeHintsTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ void compositeFilterChainProxyHasHints() {
5151
.onType(TypeReference
5252
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"))
5353
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
54+
assertThat(RuntimeHintsPredicates.reflection()
55+
.onType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"))
56+
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
5457
}
5558

5659
}

0 commit comments

Comments
 (0)