Add serialization runtime hint for HashMap

Partially resolves #4239
This commit is contained in:
Aleksandr Arshavskiy
2022-11-21 09:24:29 +01:00
committed by Mahmoud Ben Hassine
parent 5da3fce34c
commit dfbc3d03da

View File

@@ -16,6 +16,7 @@
package org.springframework.batch.core.aot;
import java.sql.Types;
import java.util.HashMap;
import org.springframework.aop.SpringProxy;
import org.springframework.aop.framework.Advised;
@@ -32,6 +33,7 @@ import org.springframework.core.DecoratingProxy;
*
* @author Glenn Renfro
* @author Mahmoud Ben Hassine
* @author Alexander Arshavskiy
* @since 5.0
*/
public class CoreRuntimeHints implements RuntimeHintsRegistrar {
@@ -64,6 +66,8 @@ public class CoreRuntimeHints implements RuntimeHintsRegistrar {
hints.reflection().registerType(JobContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);
hints.reflection().registerType(StepContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);
hints.serialization().registerType(HashMap.class);
}
}