You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change ( elastic/logstash@a0819e2 ) in Logstash is a workaround for a bizarre JRuby 1.7.x bug. This bug is not present in JRuby 9.x.
The synopsis is that sometimes define_singleton_method(:mymethod, method(:mymethodalt)) fails where define_singleton_method(:mymethod, lambda { mymethodalt }) does not.
This change ( elastic/logstash@a0819e2 ) in Logstash is a workaround for a bizarre JRuby 1.7.x bug. This bug is not present in JRuby 9.x.
The synopsis is that sometimes
define_singleton_method(:mymethod, method(:mymethodalt))
fails wheredefine_singleton_method(:mymethod, lambda { mymethodalt })
does not.For reasons that are not clear, when running the specs for https://github.com/logstash-plugins/logstash-output-file against logstash in the preceding commit preceding elastic/logstash@a0819e2 a
TypeError: can't bind singleton method to a different class
exception would be raised.The funky thing is that not only was this not a subclass of
OutputDelegator
, but there are no subclasses defined anywhere for it. Weird stuff!The text was updated successfully, but these errors were encountered: