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 is my first time commenting on a JRuby issue, so please let me know if I understand correctly. You're expecting the error from http://comments.gmane.org/gmane.comp.lang.jruby.devel/8456 to occur when I execute the code above in JIT mode?
If so, I'm not seeing that error:
➜ ~ cat test.rb
def hello
class << self
yield
end
end
p(hello { 123 })
➜ ~ jruby test.rb
123
➜ ~ jruby -v
jruby 9.0.3.0 (2.2.2) 2015-10-21 633c9aa Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]
➜ ~ Work/jruby/bin/jruby -v
jruby 9.1.0.0-SNAPSHOT (2.2.3) 2016-02-24 9fc6fb1 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]
➜ ~ Work/jruby/bin/jruby test.rb
123
Is there a specific environment here? I see the original issue is quite old. I'm running on a MacBook Pro with OS X Mavericks.
Originally from JRUBY-4963 (works in both 1.7 and 9000 interpreters):
The text was updated successfully, but these errors were encountered: