Regression after recent JI changes: Some unit tests cannot be executed, just
exit
---------------------------------------------------------------------------------
Key: JRUBY-2106
URL: http://jira.codehaus.org/browse/JRUBY-2106
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1RC1
Environment: Latest JRuby 1.1RC1 from trunk (rev. 5914)
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Priority: Critical
Fix For: JRuby 1.1RC2
After changes from:
r5902 | bdortch | 2008-02-11 16:06:35 +0100 (Mon, 11 Feb 2008)
JI: Moved more JI code into Java to improve performance.
Some junit tests don't even start, they just exit, printing nothing.
E.g.:
jruby test/test_launching_by_shell_script.rb
After some investigation, it turned out that any attempt to load java package
sets $!, even the error is not really visible.
And unit test code checks for that, and doesn't start test execution if $! is
not nil.
Here's a very simple example:
{noformat}
require 'java'
$! = nil
undo = javax.swing.undo
p $!
{noformat}
It prints: #<NameError: cannot load Java class javax.swing.undo>
Fix is coming.
--
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