Skip to content

Check meta-class of method objects in equals#4918

Merged
kares merged 1 commit intojruby:masterfrom
yui-knk:test_eq
Jan 1, 2018
Merged

Check meta-class of method objects in equals#4918
kares merged 1 commit intojruby:masterfrom
yui-knk:test_eq

Conversation

@yui-knk
Copy link
Contributor

@yui-knk yui-knk commented Dec 30, 2017

In MRI, method_eq checks CLASS_OF method objects

(CLASS_OF(method) != CLASS_OF(other))

By this change, TestMethod#test_eq will be passed.

In MRI, `method_eq` checks CLASS_OF method objects

```
(CLASS_OF(method) != CLASS_OF(other))
```

By this change, `TestMethod#test_eq` will be passed.
@kares kares added the core label Dec 30, 2017
@kares kares added this to the JRuby 9.2.0.0 milestone Jan 1, 2018
@kares
Copy link
Member

kares commented Jan 1, 2018

nice find - makes sense.

@kares kares merged commit f8fb28d into jruby:master Jan 1, 2018
@yui-knk yui-knk deleted the test_eq branch January 1, 2018 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants