ArrayIndexOutOfBoundsException in String#lines paragraph mode
-------------------------------------------------------------
Key: JRUBY-4987
URL: http://jira.codehaus.org/browse/JRUBY-4987
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.5.1
Environment: jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-08-02
8f38294) (OpenJDK 64-Bit Server VM 1.6.0_18) [amd64-java]
Reporter: Hiroshi Nakamura
"foo\n".lines('').to_a # => ArrayIndexOutOfBoundsException
Parsing last "\n" causes OOB access.
Patch follows.
--
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