Browse Source
If an application depends on automatic type conversion from java.time.Instant to java.sql.Timestamp, the ObjectToObjectConverter performs the conversion based on convention, by using reflection to invoke Timestamp.from(Instant). However, when running in a native image a user needs to explicitly register runtime hints for that particular use of reflection. To assist users who are running their applications in a native image, this commit automatically registers the necessary runtime hints for Timestamp.from(Instant) so that users do not have to. See gh-35175 Closes gh-35156pull/35405/head
2 changed files with 24 additions and 8 deletions
Loading…
Reference in new issue