Skip to content

Commit bdd2cd4

Browse files
committed
Update core native hints
This commit adds a: * JDK proxy hint for JobExplorer * Reflection hint for fields of java.sql.Types
1 parent 8973c8a commit bdd2cd4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
*/
1616
package org.springframework.batch.core.aot;
1717

18+
import java.sql.Types;
19+
1820
import org.springframework.aop.SpringProxy;
1921
import org.springframework.aop.framework.Advised;
22+
import org.springframework.aot.hint.MemberCategory;
2023
import org.springframework.aot.hint.RuntimeHints;
2124
import org.springframework.aot.hint.RuntimeHintsRegistrar;
2225
import org.springframework.aot.hint.TypeReference;
@@ -48,9 +51,11 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
4851

4952
hints.proxies()
5053
.registerJdkProxy(builder -> builder
51-
.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.repository.JobRepository"))
54+
.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.repository.JobRepository"),
55+
TypeReference.of("org.springframework.batch.core.explore.JobExplorer"))
5256
.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class));
5357

58+
hints.reflection().registerType(Types.class, MemberCategory.DECLARED_FIELDS);
5459
}
5560

5661
}

0 commit comments

Comments
 (0)