Anybody think this one is worth a JIRA?
$cat test.rb
module M
B = 3
class S
B
eval File.read(FILE)
end
end
C:\dev\ruby\sensible-cinema\bin\isolate>ruby -v test.rb
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
test.rb:5:in eval': No such file or directory - (eval) (Errno::ENOENT) from (eval):5:in
class:S’
from (eval):3:in <module:M>' from (eval):1:in
class:S’
from test.rb:5:in eval' from test.rb:5:in
class:S’
from test.rb:3:in <module:M>' from test.rb:1:in
’
$ C:\installs\jruby-1.5.5\bin\jruby --1.9 test.rb
(eval):5:in `initialize’: No such file or directory - (eval)
(Errno::ENOENT)
from (eval):5
(fewer backtrace lines in jruby than KRI…)