Skip to content

Commit ad2e95b

Browse files
committed
Merge branch '6.1.x'
2 parents 63ca8d5 + 93f0ec2 commit ad2e95b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

spring-context/src/main/java/org/springframework/scheduling/concurrent/SimpleAsyncTaskScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected void doExecute(Runnable task) {
192192
}
193193

194194
private Runnable scheduledTask(Runnable task) {
195-
return () -> execute(task);
195+
return () -> execute(new DelegatingErrorHandlingRunnable(task, TaskUtils.LOG_AND_PROPAGATE_ERROR_HANDLER));
196196
}
197197

198198
private Runnable taskOnSchedulerThread(Runnable task) {

spring-context/src/test/java/org/springframework/context/generator/ApplicationContextAotGeneratorRuntimeHintsTests.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,8 +59,8 @@ void generateApplicationContextWithSimpleBean() {
5959
void generateApplicationContextWithAutowiring() {
6060
GenericApplicationContext context = new AnnotationConfigApplicationContext();
6161
context.registerBeanDefinition("autowiredComponent", new RootBeanDefinition(AutowiredComponent.class));
62-
context.registerBeanDefinition("number", BeanDefinitionBuilder.rootBeanDefinition(Integer.class, "valueOf")
63-
.addConstructorArgValue("42").getBeanDefinition());
62+
context.registerBeanDefinition("number", BeanDefinitionBuilder.rootBeanDefinition(
63+
Integer.class, "valueOf").addConstructorArgValue("42").getBeanDefinition());
6464
compile(context, (hints, invocations) -> assertThat(invocations).match(hints));
6565
}
6666

@@ -89,8 +89,10 @@ void generateApplicationContextWithInheritedDestroyMethods() {
8989
compile(context, (hints, invocations) -> assertThat(invocations).match(hints));
9090
}
9191

92-
@SuppressWarnings({ "rawtypes", "unchecked" })
93-
private void compile(GenericApplicationContext applicationContext, BiConsumer<RuntimeHints, RuntimeHintsInvocations> initializationResult) {
92+
@SuppressWarnings({"rawtypes", "unchecked"})
93+
private void compile(GenericApplicationContext applicationContext,
94+
BiConsumer<RuntimeHints, RuntimeHintsInvocations> initializationResult) {
95+
9496
ApplicationContextAotGenerator generator = new ApplicationContextAotGenerator();
9597
TestGenerationContext generationContext = new TestGenerationContext();
9698
generator.processAheadOfTime(applicationContext, generationContext);
@@ -107,17 +109,15 @@ private void compile(GenericApplicationContext applicationContext, BiConsumer<Ru
107109
});
108110
}
109111

112+
110113
public interface Destroyable {
111114

112115
@PreDestroy
113116
default void destroy() {
114-
115117
}
116-
117118
}
118119

119120
public static class InheritedDestroy implements Destroyable {
120-
121121
}
122122

123123
}

0 commit comments

Comments
 (0)