Fix deprecation in aot hints

This commit is contained in:
Janne Valkealahti
2022-09-14 15:11:01 +01:00
parent 15f03b358f
commit 6f220e2ea4

View File

@@ -19,6 +19,7 @@ import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ProxyHints;
import org.springframework.aot.hint.ReflectionHints;
@@ -360,7 +361,7 @@ public class JnaRuntimeHints implements RuntimeHintsRegistrar {
}
void withHints(TypeHint.Builder hint) {
hint.withMethod(name, asTypeReferences());
hint.withMethod(name, asTypeReferences(), ExecutableMode.INVOKE);
}
}