StringIndexOutOfBoundsException if the last character in format is '%' in
Time.strftime
---------------------------------------------------------------------------------------
Key: JRUBY-3873
URL: http://jira.codehaus.org/browse/JRUBY-3873
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: github trunk, Java 6, Mac OS X 10.5.8
Reporter: Hiro Asari
Fix For: JRuby 1.4
Attachments: strftime.patch
If '%' is the last character in the format string, we'll get
java.lang.StringIndexOutOfBoundsException. In MRI & Rubinius, this is treated
as a single '%'. (This could be due to the underlying C library.)
RubySepc doesn't have a spec for this test case.
--
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