Special block code for Enumerable is not quite 1.9 friendly
-----------------------------------------------------------
Key: JRUBY-4013
URL: http://jira.codehaus.org/browse/JRUBY-4013
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9
Affects Versions: JRuby 1.3.1
Reporter: Thomas E Enebo
callEach with CallBlock is going through slightly different semantics than 1.8.
At least this is my guess. We are failing a map and collect spec during a 1.9
run:
{noformat}
Enumerable#map gathers initial args as elements when each yields multiple FAILED
Expected [[1, 2], [3, 4, 5], [6, 7, 8, 9]]
to equal [1, 3, 6]
{noformat}
David had a patch which tried to fix this in Enumerable methods themselves, but
it is more complex than that and needs some logic baked into block handling
code itself.
--
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