LocalJumpError is displayed when a block is invoked in a java thread.
---------------------------------------------------------------------
Key: JRUBY-2028
URL: http://jira.codehaus.org/browse/JRUBY-2028
Project: JRuby
Issue Type: Improvement
Affects Versions: JRuby 1.0.3
Environment: ruby 1.8.5 (2007-12-15 rev 5200) [i386-jruby1.0.3]
Reporter: Tooru TAKAHASHI
Assignee: Thomas E Enebo
Priority: Minor
Hello,
I don't understand the following output.
{code}
% jruby -d -r java -e '
def runnable(&block)
java.lang.Runnable.impl do
block.call
end
end
thread = java.lang.Thread.new(runnable {})
thread.start
thread.join
'
:1: yield called out of block (LocalJumpError) # <= this!
{code}
This is not displayed without '-d' option.
Regards.
--
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