[#85940] [Ruby trunk Bug#14578] Forking a child process inside of a mutex crashes the ruby interpreter — ben.govero@...
Issue #14578 has been reported by bengovero (Ben Govero).
3 messages
2018/03/05
[#86205] [Ruby trunk Feature#14618] Add display width method to String for CLI — aycabta@...
Issue #14618 has been reported by aycabta (aycabta .).
3 messages
2018/03/19
[#86366] Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955 — Eric Wong <normalperson@...>
usa@ruby-lang.org wrote:
3 messages
2018/03/28
[ruby-core:86230] [Ruby trunk Bug#13973] super_method fails on some UnboundMethods
From:
nagachika00@...
Date:
2018-03-20 15:53:45 UTC
List:
ruby-core #86230
Issue #13973 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.3: REQUIRED, 2.4: REQUIRED to 2.3: REQUIRED, 2.4: DONE ruby_2_4 r62865 merged revision(s) 58245,60127. ---------------------------------------- Bug #13973: super_method fails on some UnboundMethods https://bugs.ruby-lang.org/issues/13973#change-71127 * Author: marcandre (Marc-Andre Lafortune) * Status: Closed * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Target version: 2.5 * ruby -v: trunk * Backport: 2.3: REQUIRED, 2.4: DONE ---------------------------------------- `super_method` fails to go up the ancestry chain for methods that are only defined in included modules: ~~~ ruby module A def foo end end module B def foo end end class C include A include B end class D def foo end include A include B end C.instance_method(:foo) # => #<UnboundMethod: C(B)#foo> (ok) C.instance_method(:foo).super_method # => nil (wrong, should be <UnboundMethod: <something>(A)#foo>) C.new.method(:foo).super_method # => #<Method: Object(A)#foo> (ok) D.instance_method(:foo).super_method # => #<UnboundMethod: Object(B)#foo> (ok) D.instance_method(:foo).super_method.super_method # => #<UnboundMethod: Object(A)#foo> (ok) ~~~ Note that the results for C and D's super_method differ slightly, with one outputing "C(B)" and the other "Object(B)". I don't understand why "Object" shows anywhere in my example. I would have expected the output to be "D(B)" in the later case. Should I open a different issue for this? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>