Skip to content

Commit dfbc3d0

Browse files
Aleksandr Arshavskiyfmbenhassine
Aleksandr Arshavskiy
authored andcommitted
Add serialization runtime hint for HashMap
Partially resolves #4239
1 parent 5da3fce commit dfbc3d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/aot/CoreRuntimeHints.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.springframework.batch.core.aot;
1717

1818
import java.sql.Types;
19+
import java.util.HashMap;
1920

2021
import org.springframework.aop.SpringProxy;
2122
import org.springframework.aop.framework.Advised;
@@ -32,6 +33,7 @@
3233
*
3334
* @author Glenn Renfro
3435
* @author Mahmoud Ben Hassine
36+
* @author Alexander Arshavskiy
3537
* @since 5.0
3638
*/
3739
public class CoreRuntimeHints implements RuntimeHintsRegistrar {
@@ -64,6 +66,8 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
6466

6567
hints.reflection().registerType(JobContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);
6668
hints.reflection().registerType(StepContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);
69+
70+
hints.serialization().registerType(HashMap.class);
6771
}
6872

6973
}

0 commit comments

Comments
 (0)