Skip to content

Commit 26edf79

Browse files
committed
Merge branch '3.5.x' into 4.0.x
2 parents 7151419 + 6620dea commit 26edf79

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

module/spring-boot-webflux/src/main/java/org/springframework/boot/webflux/actuate/endpoint/web/AbstractWebFluxEndpointHandlerMapping.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ private static final class CatchAllHandler {
555555
this.responseStatus = responseStatus;
556556
}
557557

558+
@Reflective
558559
Mono<Void> handle(ServerWebExchange exchange) {
559560
ServerHttpResponse response = exchange.getResponse();
560561
response.setStatusCode(this.responseStatus);
@@ -623,7 +624,7 @@ static class AbstractWebFluxEndpointHandlerMappingRuntimeHints implements Runtim
623624
@Override
624625
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
625626
this.reflectiveRegistrar.registerRuntimeHints(hints, WriteOperationHandler.class,
626-
ReadOperationHandler.class);
627+
ReadOperationHandler.class, CatchAllHandler.class);
627628
}
628629

629630
}

module/spring-boot-webflux/src/test/java/org/springframework/boot/webflux/actuate/endpoint/web/AbstractWebFluxEndpointHandlerMappingTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ void shouldRegisterHints() {
4545
.onType(TypeReference
4646
.of("org.springframework.boot.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping.ReadOperationHandler")))
4747
.accepts(runtimeHints);
48+
assertThat(RuntimeHintsPredicates.reflection()
49+
.onType(TypeReference
50+
.of("org.springframework.boot.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping.CatchAllHandler")))
51+
.accepts(runtimeHints);
4852
}
4953

5054
}

module/spring-boot-webmvc/src/main/java/org/springframework/boot/webmvc/actuate/endpoint/web/AbstractWebMvcEndpointHandlerMapping.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ private static final class CatchAllHandler {
494494
this.responseStatus = responseStatus;
495495
}
496496

497+
@Reflective
497498
void handle(HttpServletResponse response) {
498499
response.setStatus(this.responseStatus.value());
499500
}
@@ -559,7 +560,7 @@ static class AbstractWebMvcEndpointHandlerMappingRuntimeHints implements Runtime
559560

560561
@Override
561562
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
562-
this.reflectiveRegistrar.registerRuntimeHints(hints, OperationHandler.class);
563+
this.reflectiveRegistrar.registerRuntimeHints(hints, OperationHandler.class, CatchAllHandler.class);
563564
}
564565

565566
}

module/spring-boot-webmvc/src/test/java/org/springframework/boot/webmvc/actuate/endpoint/web/AbstractWebMvcEndpointHandlerMappingTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ void shouldRegisterHints() {
4040
.onType(TypeReference
4141
.of("org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping.OperationHandler")))
4242
.accepts(runtimeHints);
43+
assertThat(RuntimeHintsPredicates.reflection()
44+
.onType(TypeReference
45+
.of("org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping.CatchAllHandler")))
46+
.accepts(runtimeHints);
4347
}
4448

4549
}

0 commit comments

Comments
 (0)