Exception backtraces have missing entries if __send__ is in callstack
---------------------------------------------------------------------

                 Key: JRUBY-3868
                 URL: http://jira.codehaus.org/browse/JRUBY-3868
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.3.1
         Environment: Solaris 10 U6
            Reporter: Ben Summers
         Attachments: xxx.rb

The entries above a __send__ call have some elements missing in the JRuby 
backtrace. This makes it rather difficult to see where the exception has 
occurred.

Comparing Ruby and JRuby with the attached script:

$ ruby test/xxx.rb 
#<NoMethodError: undefined method `will_fail!' for nil:NilClass>
test/xxx.rb:7:in `there'
test/xxx.rb:4:in `hello'
test/xxx.rb:14:in `__send__'
test/xxx.rb:14

$ /opt/jruby/bin/jruby test/xxx.rb 
#<NoMethodError: undefined method `will_fail!' for nil:NilClass>
test/xxx.rb:4:in `hello'
test/xxx.rb:14

$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-solaris2.10]

$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)

$ /opt/jruby/bin/jruby --version   
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM 
1.6.0_11) [x86-java]




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