Skip to content

Conversation

@headius
Copy link
Contributor

@headius headius commented Dec 11, 2025

JRuby does not expose the initialize method for a given Data instance to native code, so there's no equivalent to calling rb_struct_initialize. This change moves that initialization to a Ruby __send__ and removes the native stub method init_data.

Fixes broken JRuby Data logic after #692.

JRuby does not expose the `initialize` method for a given Data
instance to native code, so there's no equivalent to calling
`rb_struct_initialize`. This change moves that initialization to
a Ruby `__send__` and removes the native stub method `init_data`.

Fixes broken JRuby `Data` logic after ruby#692.
@eregon
Copy link
Member

eregon commented Dec 11, 2025

This looks nice & simple but it will break for some Data classes as shown in item 1 of #764 (comment).
I propose to discuss everything on #764 to keep things together.

@eregon
Copy link
Member

eregon commented Dec 11, 2025

Let's merge #765 instead.

@eregon eregon closed this Dec 11, 2025
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.

2 participants