Toshikazu Yaegashi created JRUBY-6414: -----------------------------------------
Summary: YAML.load cause errors in particular string Key: JRUBY-6414 URL: https://jira.codehaus.org/browse/JRUBY-6414 Project: JRuby Issue Type: Bug Components: Standard Library Affects Versions: JRuby 1.6.6, JRuby 1.7 Environment: jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.7.0_147-icedtea) [linux-amd64-java] jruby 1.7.0.dev (ruby-1.9.3-p28) (2012-02-02 6971c33) (OpenJDK 64-Bit Server VM 1.7.0_147-icedtea) [linux-amd64-java] Reporter: Toshikazu Yaegashi Assignee: Thomas E Enebo {code} ~$ ruby-1.9.3-p0 -e 'require "yaml"; p YAML.load "- \u{20ac}0-1";' ["0-1"] ~$ jruby-1.6.6 --1.9 -e 'require "yaml"; p YAML.load "- \u{20ac}0-1";' UTF8Encoding.java:35:in `length': java.lang.ArrayIndexOutOfBoundsException: 6 from Matcher.java:124:in `forwardSearchRange' from Matcher.java:432:in `search' from RubyRegexp.java:1619:in `search19' from RubyRegexp.java:1458:in `eqq19' from RubyRegexp$i$1$0$eqq19.gen:65535:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from WhenOneArgNode.java:35:in `whenSlowTest' from WhenOneArgNode.java:46:in `when' from CaseNode.java:133:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from ReturnNode.java:92:in `interpret' from IfNode.java:119:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from FCallOneArgNode.java:36:in `interpret' from NewlineNode.java:104:in `interpret' from WhenOneArgNode.java:36:in `whenSlowTest' from WhenOneArgNode.java:46:in `when' from CaseNode.java:133:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:212:in `call' from DefaultMethod.java:207:in `call' from SuperCallSite.java:190:in `callBlock' from SuperCallSite.java:197:in `call' from SuperCallSite.java:108:in `callVarargs' from ZSuperNode.java:102:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from FCallOneArgNode.java:36:in `interpret' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:112:in `INTERPRET_BLOCK' from Interpreted19Block.java:212:in `evalBlockBody' from Interpreted19Block.java:163:in `yield' from Block.java:130:in `yield' from RubyArray.java:1607:in `eachCommon' from RubyArray.java:1614:in `each' from RubyArray$i$0$0$each.gen:65535:in `call' from CachingCallSite.java:302:in `cacheAndCall' from CachingCallSite.java:144:in `callBlock' from CachingCallSite.java:153:in `callIter' from CallNoArgBlockNode.java:64:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from CaseNode.java:138:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from FCallOneArgNode.java:36:in `interpret' from NewlineNode.java:104:in `interpret' from WhenOneArgNode.java:36:in `whenSlowTest' from WhenOneArgNode.java:46:in `when' from CaseNode.java:133:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:212:in `call' from DefaultMethod.java:207:in `call' from SuperCallSite.java:366:in `cacheAndCall' from SuperCallSite.java:192:in `callBlock' from SuperCallSite.java:197:in `call' from SuperCallSite.java:108:in `callVarargs' from ZSuperNode.java:102:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:147:in `call' from DefaultMethod.java:183:in `call' from CachingCallSite.java:292:in `cacheAndCall' from CachingCallSite.java:135:in `call' from CallNoArgNode.java:63:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:199:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from -e:1:in `__file__' from -e:-1:in `load' from Ruby.java:695:in `runScript' from Ruby.java:688:in `runScript' from Ruby.java:595:in `runNormally' from Ruby.java:444:in `runFromMain' from Main.java:344:in `doRunFromMain' from Main.java:256:in `internalRun' from Main.java:222:in `run' from Main.java:206:in `run' from Main.java:186:in `main' {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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