Skip to content

Docs: Correct the native-image note on reflection registration - #245

Merged
b-re-w merged 1 commit into
developfrom
feat/graal-note-reflection
Oct 17, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/graal-note-reflection

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 17, 2026

Copy link
Copy Markdown
Member

Closes #244

Documentation corrected: docs/platforms/graal-native-image-verification.md.

  • The result table claimed the upcall path needs no reflection registration. Corrected: the generated function table needs none, but the upcall bootstrap finds its five FFM entry points by name on one fixed class (UpcallStub.kt), so UpcallTarget is registered by hand in reachability-metadata.base.json.
  • The "1,822 types ... registered for reflection" log line is explained: it counts the whole image, JDK and library metadata included.

No code change.

The result table said the upcall path needs no reflection registration
while the build log showed 1,822 types registered and the base metadata
registers UpcallTarget. The generated function table needs none; the
upcall bootstrap finds its five FFM entry points by name on that one
class, which is registered by hand. The log line counts the whole
image, JDK and library metadata included.

Closes #244
@b-re-w
b-re-w merged commit d08757a into develop Oct 17, 2026
@b-re-w
b-re-w deleted the feat/graal-note-reflection branch October 17, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant