[1.9] String#<< crashes with negative argument
----------------------------------------------
Key: JRUBY-4463
URL: http://jira.codehaus.org/browse/JRUBY-4463
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9
Reporter: Vladimir Sizikov
{noformat}
jruby --1.9 -e "p 'test'.force_encoding('UTF-8') << -200"
BaseUTF8Encoding.java:80:in `codeToMbcLength':
org.jcodings.exception.EncodingException: invalid code point value
from UTF8Encoding.java:24:in `codeToMbcLength'
from StringSupport.java:300:in `codeLength'
from RubyString.java:2294:in `concat19'
from org/jruby/RubyString$i_method_1_0$RUBYINVOKER$concat19.gen:-1:in
`call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CachingCallSite.java:59:in `call'
from CallOneArgFixnumNode.java:61:in `interpret'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from RootNode.java:129:in `interpret'
from Ruby.java:657:in `runInterpreter'
from Ruby.java:553:in `runNormally'
from Ruby.java:395:in `runFromMain'
from Main.java:272:in `run'
from Main.java:117:in `run'
from Main.java:97:in `main'
{noformat}
This also crashes rubyspec run under 1.9.
--
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