Hello all.
$ cat test.rb
File.delete ‘yo’
$ jruby test.rb
Errno::ENOENT: No such file or directory - yo
unlink at org/jruby/RubyFile.java:1788 # what is this? desired?
(root) at test.rb:3
MRI:
$ ruby test.rb
test.rb:3:in `delete’: No such file or directory - yo (Errno::ENOENT)
from test.rb:3
Cheers!
-r
On Tue, Aug 23, 2011 at 11:44 AM, Roger P. [email protected]
wrote:
$ jruby test.rb
Errno::ENOENT: No such file or directory - yo
unlink at org/jruby/RubyFile.java:1788 # what is this? desired?
(root) at test.rb:3
Same number of backtrace lines, really…but the topmost is different.
MRI does not push any frame information for methods implemented in C,
so it just repeats the previous file+line. In JRuby, we can show at
least the entry point into Java code, and that’s what goes in the
trace.