Fiber.yield crahes if called without arguments
----------------------------------------------
Key: JRUBY-3615
URL: http://jira.codehaus.org/browse/JRUBY-3615
Project: JRuby
Issue Type: Bug
Environment: Ubuntu 8.10
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
Reporter: Larry Diehl
Assignee: Thomas E Enebo
Priority: Minor
Fiber.yield will crashes if called without arguments (this is not the case in
Ruby 1.9):
require 'fiber'
fiber = Fiber.new do
Fiber.yield
:returned
end
fiber.resume
puts fiber.resume
Running the code above causes:
Exception in thread "Thread-1" fiber_bug.rb:4:in `yield': wrong # of
arguments(0 for 1) (ArgumentError)
from fiber_bug.rb:4
...internal jruby stack elided...
from (unknown).yield(fiber_bug.rb:4)
from (unknown).(unknown)(:1)
from (unknown).(unknown)(:1)
--
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