insensible backtrace difference at 'file' part
----------------------------------------------

                 Key: JRUBY-5327
                 URL: http://jira.codehaus.org/browse/JRUBY-5327
             Project: JRuby
          Issue Type: Improvement
          Components: Interpreter
    Affects Versions: JRuby 1.5.6
         Environment: jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-11 
314c16f) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]

            Reporter: Hiroshi Nakamura
            Priority: Minor


At 'file' part in backtraces, CRuby 1.9 uses '<top>' as top-level, and '<main>' 
as root context for each loaded file. JRuby 1.6.0.RC1 uses '(root)' now.

As you see below, there's a difference between CRuby 1.8.7 and 1.9 so I don't 
think it's a must-to-fix incompatibility.
{noformat}
0% ruby187 -ve raise
ruby 1.8.7 (2010-12-23 patchlevel 330) [x86_64-linux]
-e:1: unhandled exception

1% ruby -ve raise 
ruby 1.9.3dev (2011-01-11 trunk 30513) [x86_64-linux]
-e:1:in `<main>': unhandled exception

1% jruby15 -ve raise
jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (OpenJDK 64-Bit 
Server VM 1.6.0_20) [amd64-java]
-e:1: unhandled exception

1% jruby -ve raise 
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-11 314c16f) (OpenJDK 
64-Bit Server VM 1.6.0_20) [linux-amd64-java]
-e:1:in `(root)': unhandled exception

1% echo raise > raise.rb       

0% ruby187 -e 'load "raise.rb"'
./raise.rb:1: unhandled exception
        from -e:1:in `load'
        from -e:1

1% ruby -e 'load "raise.rb"' 
raise.rb:1:in `<top (required)>': unhandled exception
        from -e:1:in `load'
        from -e:1:in `<main>'

1% jruby15 -e 'load "raise.rb"'
./raise.rb:1: unhandled exception
        from ./raise.rb:1:in `load'
        from -e:1

1% jruby -e 'load "raise.rb"' 
./raise.rb:1:in `(root)': unhandled exception
        from org/jruby/RubyKernel.java:1066:in `load'
        from -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