-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
If you do the following in jruby 9.0.4.0:
> define_method(:foo) { |*| }
> foo("hi")
You get this RuntimeError:
RuntimeError: BUG: interpreter fell through to end unexpectedly
from (irb):2:in `foo'
from (irb):2:in `<eval>'
from org/jruby/RubyKernel.java:978:in `eval'
from org/jruby/RubyKernel.java:1291:in `loop'
from org/jruby/RubyKernel.java:1098:in `catch'
from org/jruby/RubyKernel.java:1098:in `catch'
from /home/vagrant/.rbenv/versions/jruby-9.0.4.0/bin/irb:13:in `<top>'
I tried the same in jruby-9.0.1.0, and it works as follows:
irb(main):005:0> define_method(:foo) { |*| }
=> :foo
irb(main):006:0> foo("hi")
=> nil
Reactions are currently unavailable