Skip to content

Commit

Permalink
Add serialization runtime hint for HashMap
Browse files Browse the repository at this point in the history
Partially resolves #4239
  • Loading branch information
Aleksandr Arshavskiy authored and fmbenhassine committed Nov 22, 2022
1 parent 5da3fce commit dfbc3d0
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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;
Expand All @@ -32,6 +33,7 @@
*
* @author Glenn Renfro
* @author Mahmoud Ben Hassine
* @author Alexander Arshavskiy
* @since 5.0
*/
public class CoreRuntimeHints implements RuntimeHintsRegistrar {
Expand Down Expand Up @@ -64,6 +66,8 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {

hints.reflection().registerType(JobContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);
hints.reflection().registerType(StepContext.class, MemberCategory.INVOKE_PUBLIC_METHODS);

hints.serialization().registerType(HashMap.class);
}

}

0 comments on commit dfbc3d0

Please sign in to comment.