Commit 2547051
committed
Invoke initialize from Ruby, not native code
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.1 parent 5af4cec commit 2547051
2 files changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| |||
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | | - | |
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 222 | + | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
| |||
0 commit comments