(Joni regression) "".index("") returns nil instead of 0
-------------------------------------------------------
Key: JRUBY-1657
URL: http://jira.codehaus.org/browse/JRUBY-1657
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: Latest JRuby 1.1b1, built from trunk
Reporter: Vladimir Sizikov
Priority: Critical
Attachments: string_index.diff
"".index("") return nil in JRuby with joni, but should return 0.
The source code for RubyString even has the following comment:
// the empty string is always found at the beginning of a string.
This leads to two rubinius spec failures and one activesupport test failure, so
the fix is very desirable.
The proposed patch fixes the problem and the related test failures mentioned
above.
--
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