Commit 55ff55c
committed
Check if respond_to_missing? exists before respond_to?
Old logic did a hard dispatch to respond_to_missing? if respond_to?
returned false. This breaks any case where respond_to_missing? has
been removed from a class altogether.
The change here tries to mimic the CRuby logic, first checking if
respond_to? exists and returns true, and if it does not, only call
respond_to_missing? if it exists.
Fixes jruby#92581 parent f1c5ab7 commit 55ff55c
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2231 | 2244 | | |
2232 | 2245 | | |
2233 | 2246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments