stack trace near "load" call has wrong file name with jruby.compile.mode=OFF
----------------------------------------------------------------------------

                 Key: JRUBY-6011
                 URL: https://jira.codehaus.org/browse/JRUBY-6011
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.3
            Reporter: John Firebaugh
            Assignee: Thomas E Enebo


a.rb:
{code}
load('b.rb')
{code}

b.rb:
{code}
raise StandardError
{code}

`jruby a.rb`:
{code}
StandardError: StandardError
  (root) at ./b.rb:1
    load at org/jruby/RubyKernel.java:1063
  (root) at a.rb:1
{code}

Note that the last line is correctly attributed to a.rb.

`jruby -J-Djruby.compile.mode=OFF a.rb`:
{code}
StandardError: StandardError
  (root) at ./b.rb:1
    load at org/jruby/RubyKernel.java:1063
  (root) at ./b.rb:1
{code}

The last line is incorrectly attributed to b.rb.

--debug implies jruby.compile.mode=OFF, so this leads to confusing stack traces 
when debugging loads.

--
This message is automatically generated by JIRA.
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