JRuby crashes with error: can't find string "EOF" anywhere before EOF 
(SyntaxError)
-----------------------------------------------------------------------------------

                 Key: JRUBY-1408
                 URL: http://jira.codehaus.org/browse/JRUBY-1408
             Project: JRuby
          Issue Type: Bug
          Components: Parser
         Environment: Linux serega-laptop 2.6.22-13-generic #1 SMP Thu Oct 4 
17:18:44 GMT 2007 i686 GNU/Linux

ruby 1.8.5 (2007-10-07 rev 3876) [i386-jruby1.1]
            Reporter: Sergey Martynov
         Attachments: heredoc_lexer_eof.path, heredoc_lexer_eof_test.path

I'm trying to run rails app on jruby.

In this app i use rutils plugin. jruby fail on loading from this plugin:
http://rutils.rubyforge.org/svn/trunk/lib/countries/countries.rb

with following error:
countries.rb:1771: can't find string "EOF" anywhere before EOF (SyntaxError)

On MRI ruby app works ok.

I browse the code and find that problem is in how LexerSource.matchString 
called.
It allways called like this: src.matchString("expectedString" + '\n', indent);
I remove '\n' from call and add parameter to match string until next line or 
end of file.
This works perfectly for me and all test cases passed.

Patch and test attached.

-- 
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

Reply via email to