Open Sanne opened 1 month ago
/cc @zakkak (native-image)
Regarding serialization-config.json
please note that it's going to be deprecated in GraalVM for JDK 23 and replaced by reachability-metadata.json
see https://github.com/oracle/graal/pull/9048, related Quarkus issue https://github.com/quarkusio/quarkus/issues/41016
Description
I was having native-image spit out errors:
It turns out the fix is trivial, as apparently one can contribute entries to the
serialization-config.json
by usingUnfortunately the guide at https://quarkus.io/guides/writing-native-applications-tips doesn't mention neither the
serialization-config.json
and theserialization
attribute of@RegisterForReflection
.Implementation ideas
It would be nice to add a section, especially keeping in mind the language used by the GraalVM native-image error: while we don't normally expect people to create files such as
serialization-config.json
, I suspect they will be searching for related instructions.