sampokuokkanen (Sampo Kuokkanen)
- Login: sampokuokkanen
- Registered on: 05/21/2026
- Last sign in: 05/21/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
Today
-
09:04 AM Ruby Bug #22076 (Closed): defined? returns nil for protected methods defined in a module even when callable
- Applied in changeset commit:git|d1391a000359655f948e16d7f2b0e85890082b5a.
----------
Fix defined? for protected methods defined in a module
me->defined_class is 0 for methods stored on a module, so the
protected visibility check in vm_... -
08:14 AM Ruby Bug #22076 (Closed): defined? returns nil for protected methods defined in a module even when callable
- Filing this to confirm whether defined? should return "method" here (matching the call check), or whether the current nil behavior is intentional.
### Summary
`defined?` returns `nil` for a protected method defined in a module, eve... -
09:04 AM Ruby Revision d1391a00 (git): Fix defined? for protected methods defined in a module
- me->defined_class is 0 for methods stored on a module, so the
protected visibility check in vm_defined always failed and defined?
returned nil even when the call would succeed.
Use rb_callable_method_entry_with_refinements (where define...