map(&:symbol) call results in TypeError: wrong argument type NilClass (expected
Proc)
-------------------------------------------------------------------------------------
Key: JRUBY-3169
URL: http://jira.codehaus.org/browse/JRUBY-3169
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.5
Environment: Jruby 1.1.5 with Netbeans
Reporter: Klaas Prause
Assignee: Thomas E Enebo
Attachments: map_method_test.rb
The map method does not work with the "&:name" syntax anymore, worked in 1.1.4.
As example:
[ " a ", " b " ].map(&:strip)
throws an Exception:
TypeError: wrong argument type NilClass (expected Proc)
/home/klaas/workspace/BuildApplication/lib/map_method_test.rb:6:in `test_map'
/usr/local/jruby-1.1.5/lib/ruby/1.8/test/unit/testcase.rb:78:in `run'
/usr/local/jruby-1.1.5/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'
/usr/local/jruby-1.1.5/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each'
/usr/local/jruby-1.1.5/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run'
/usr/local/jruby-1.1.5/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
`run_suite'
--
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