You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you have to declare each class defined in a META-INF/services file and loaded via ServiceLoader in a reflection.json when using nativeimage.
This seems counter intuitive as the classes are already declared ahead of time. The nativeimage tool should scan the META-INF/services and include them automatically or there should be a flag to enable the ability to do this, otherwise every Java project has to write some build tool to extract all the META-INF/services classes and generate a reflection.json file.
Currently you have to declare each class defined in a
META-INF/services
file and loaded viaServiceLoader
in a reflection.json when usingnativeimage
.This seems counter intuitive as the classes are already declared ahead of time. The
nativeimage
tool should scan theMETA-INF/services
and include them automatically or there should be a flag to enable the ability to do this, otherwise every Java project has to write some build tool to extract all theMETA-INF/services
classes and generate areflection.json
file.Relates to #470
The text was updated successfully, but these errors were encountered: