Bad backtrace for failed alias at toplevel
------------------------------------------
Key: JRUBY-3595
URL: http://jira.codehaus.org/browse/JRUBY-3595
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.2
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.3
Attachments: jruby_test.tar.gz
Yet Another Backtrace Bug. This one appears to be when executing code at
toplevel that doesn't itself push a frame. In general it appears like it's
incorrect framing happening for the "require" call, which causes the original
file's information rather than the new file's information to be in the stack
trace:
{noformat}
~/projects/jruby/tmp/jruby_test ➔ ruby ./baz.rb
./foo/bar.rb:1: undefined method `get' for class `Object' (NameError)
from ./baz.rb:2:in `require'
from ./baz.rb:2
~/projects/jruby/tmp/jruby_test ➔ jruby ./baz.rb
foo.rb:1: undefined method `get' for class `Object' (NameError)
from foo/bar.rb:2:in `require'
from ./baz.rb:2
{noformat}
The sample scripts are attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email