Backtraces report modules as classes
------------------------------------

                 Key: JRUBY-5629
                 URL: http://jira.codehaus.org/browse/JRUBY-5629
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
            Reporter: Charles Oliver Nutter
            Assignee: Thomas E Enebo
            Priority: Trivial
             Fix For: JRuby 1.6.1


Not a huge deal, but misleading:

{noformat}
~/projects/rspec-mocks ➔ jruby -X-C -e "begin; module Foo; raise; end; 
rescue Exception => e; p e.backtrace; end"
["-e:1:in `(class Foo)'", "-e:1:in `(root)'"]
{noformat}

Note that compiled mode reports less information, but is at least not 
misleading:

{noformat}
~/projects/rspec-mocks ➔ jruby -e "begin; module Foo; raise; end; rescue 
Exception => e; p e.backtrace; end"
["-e:1:in `Foo'", "-e:1:in `(root)'"]
{noformat}

-- 
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


Reply via email to