Machine-readable versions of this page. Markdown: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/com/oracle/svm/core/annotate/Inject.md . Index of every page (llms.txt): https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/llms.txt . The whole reference in one Markdown file: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/llms-full.txt . Declaration contracts: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/contracts.ndjson . The API model as JSON (apidocs/1): https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/api.json .
Injects the annotated field into the TargetClass. The field must not be declared static. If instances of the target class are in the image heap, the field also needs to be annotated with RecomputeFieldValue to provide a value for the injected field.