File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
core/src/main/java/org/jruby Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,10 @@ public boolean equals(Object other) {
162162 if (method instanceof ProcMethod ) {
163163 return ((ProcMethod ) method ).isSame (((RubyMethod ) other ).getMethod ());
164164 }
165+ if (getMetaClass () != ((RubyBasicObject ) other ).getMetaClass ()) {
166+ return false ;
167+ }
168+
165169 RubyMethod otherMethod = (RubyMethod )other ;
166170 return receiver == otherMethod .receiver && originModule == otherMethod .originModule &&
167171 ( isSerialMatch (otherMethod .method ) || isMethodMissingMatch (otherMethod .getMethod ().getRealMethod ()) );
Original file line number Diff line number Diff line change 44exclude :test_clone , "needs investigation"
55exclude :test_define_method_visibility , "needs investigation"
66exclude :test_define_method_with_symbol , "scope changes in define_method methods?"
7- exclude :test_eq , "weird logic for != when patching an object retuned from o.method, likely irrelevant"
87exclude :test_gced_bmethod , "often 'Timeout::Error: execution of assert_normal_exit expired' on CI"
98exclude :test_inspect , "fails since an alias-ed method does not distinguish owner and implementor module"
109exclude :test_hash , "won't pass since Array#map is not a Array#collect alias as in MRI"
You can’t perform that action at this time.
0 commit comments