Skip to content

Commit c5e6975

Browse files
committed
Move off deprecated AOT API.
Closes #2067 Original pull request: #2124
1 parent 273fddf commit c5e6975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/aot/JdbcRuntimeHints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
5757
TypeReference.of("org.springframework.core.DecoratingProxy"));
5858

5959
hints.reflection().registerType(TypeReference.of("org.postgresql.jdbc.TypeInfoCache"),
60-
MemberCategory.PUBLIC_CLASSES);
60+
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
6161

6262
for (Class<?> simpleType : JdbcPostgresDialect.INSTANCE.simpleTypes()) {
63-
hints.reflection().registerType(TypeReference.of(simpleType), MemberCategory.PUBLIC_CLASSES);
63+
hints.reflection().registerType(TypeReference.of(simpleType), MemberCategory.INVOKE_DECLARED_METHODS);
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)