Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC1
Assignee: Unassigned
Components: Java Integration
Created: 27/Sep/12 12:17 AM
Description:

Please see:

https://github.com/dekellum/ji-tests/blob/maste/test/test_exception_runner.rb

All tests pass on jruby 1.6.8. On jruby 1.7.0.RC1 the following, somewhat bizarre failure occurs for the last test:

  1) Error:
test_raise_threaded(TestExceptionRunner):
NoMethodError: undefined method `message' for nil:NilClass
    /home/david/src/ji-tests/test/test_exception_runner.rb:60:in `test_raise_threaded'
    org/jruby/RubyBasicObject.java:1667:in `__send__'
    org/jruby/RubyArray.java:2355:in `map'
    org/jruby/RubyArray.java:2355:in `map'
    org/jruby/RubyBasicObject.java:1667:in `__send__'
    org/jruby/RubyKernel.java:2075:in `send'
    org/jruby/RubyArray.java:1612:in `each'
    /home/david/.gem/jruby/1.9/gems/rjack-tarpit-2.0.1-java/lib/rjack-tarpit/test.rb:84:in `define_test_tasks'
    org/jruby/RubyProc.java:249:in `call'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
    org/jruby/RubyArray.java:1612:in `each'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
    /opt/dist/jruby-1.7.0.RC1/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    org/jruby/RubyArray.java:1612:in `each'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
    /home/david/.gem/jruby/1.9/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
    org/jruby/RubyKernel.java:1045:in `load'
    /home/david/bin/jrake:21:in `(root)'

If the test is changes to allow the "exception" to be raised out of the test, then the even stranger error:

NoMethodError: undefined method `backTrace' for nil:NilClass

occurs instead.

Clone the repo and follow README instructions to repro the issue.

Environment: jruby 1.7.0.RC1 (1.9.3p203) 2012-09-25 8e849de on Java HotSpot(TM) Server VM 1.7.0_07-b10 [linux-i386]
Project: JRuby
Priority: Major Major
Reporter: David Kellum
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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