ruby_parser 1.0 fails with NativeException:
java.lang.IndexOutOfBoundsException: null
-------------------------------------------------------------------------------------
Key: JRUBY-1787
URL: http://jira.codehaus.org/browse/JRUBY-1787
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.0.3
Environment: JRuby 1.0.3, Java 6, Linux
Reporter: Werner Schuster
Trying out the new Ruby ruby_parser 1.0
http://blog.zenspider.com/archives/2007/12/ruby_parser_version_100_has_been_released.html
fails.
Steps to reproduce with jirb:
require 'ruby_parser'
x = RubyParser.new
x.parse("a+b")
In Ruby 1.8.6 this works - in JRuby 1.0.3 this fails with:
NativeException: java.lang.IndexOutOfBoundsException: null
from ByteList.java:275:in `org.jruby.util.ByteList.insert'
from RubyStringIO.java:539:in `org.jruby.RubyStringIO.ungetc'
from null:-1:in `org.jruby.RubyStringIOInvokerungetc1.call'
from FastInvocationCallback.java:49:in
`org.jruby.runtime.callback.FastInvocationCallback.execute'
from SimpleCallbackMethod.java:81:in
`org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
from EvaluationState.java:571:in
`org.jruby.evaluator.EvaluationState.callNode'
from EvaluationState.java:207:in
`org.jruby.evaluator.EvaluationState.evalInternal'
from EvaluationState.java:533:in
`org.jruby.evaluator.EvaluationState.blockNode'
from EvaluationState.java:201:in
`org.jruby.evaluator.EvaluationState.evalInternal'
from EvaluationState.java:164:in
`org.jruby.evaluator.EvaluationState.eval'
from DefaultMethod.java:142:in
`org.jruby.internal.runtime.methods.DefaultMethod.internalCall'
from DynamicMethod.java:79:in
`org.jruby.internal.runtime.methods.DynamicMethod.call'
from EvaluationState.java:571:in
`org.jruby.evaluator.EvaluationState.callNode'
from EvaluationState.java:207:in
`org.jruby.evaluator.EvaluationState.evalInternal'
from EvaluationState.java:533:in
`org.jruby.evaluator.EvaluationState.blockNode'
from EvaluationState.java:201:in
`org.jruby.evaluator.EvaluationState.evalInternal'
... 200 levels...
from ./ruby_lexer.rb:56:in `catch'
from /opt/jruby-1.0.3/lib/ruby/1.8/racc/parser.rb:116:in
`_racc_do_parse_rb'
from ./ruby_lexer.rb:56:in `do_parse'
from ./ruby_lexer.rb:52:in `parse'
from (irb):3:in `binding'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:150:in `eval_input'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `signal_status'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in
`each_top_level_statement'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `loop'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `catch'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:70:in `start'
from :1:in `catch'
from /opt/jruby-1.0.3/lib/ruby/1.8/irb.rb:69:in `start'
from :1irb(main):004:0>
--
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