jrubyc compile loop do .... end error
-------------------------------------

                 Key: JRUBY-5480
                 URL: http://jira.codehaus.org/browse/JRUBY-5480
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.6RC2
         Environment: jruby 1.6 rc2 on snow leopard
            Reporter: Tsay Yaw Hann
         Attachments: Test.rb

execute jrubyc Test.rb on terminal

Compiling Test.rb to class Test
Failure during compilation of file Test.rb:
org.jruby.compiler.NotCompilableException: Can't compile assignment node: 
(ArgsNoArgNode 3)
org/jruby/compiler/ASTCompiler.java:589:in `compileAssignment'
org/jruby/compiler/ASTCompiler.java:2886:in `call'
org/jruby/compiler/impl/StackBasedVariableCompiler.java:137:in `beginClosure'
org/jruby/compiler/impl/ChildScopedBodyCompiler.java:48:in `beginMethod'
org/jruby/compiler/impl/BaseBodyCompiler.java:992:in `createNewClosure'
org/jruby/compiler/ASTCompiler.java:2910:in `compileIter'
org/jruby/compiler/ASTCompiler.java:311:in `compile'
org/jruby/compiler/ASTCompiler.java:2461:in `call'
org/jruby/compiler/impl/StandardInvocationCompiler.java:756:in `invokeDynamic'
org/jruby/compiler/ASTCompiler.java:2444:in `compileFCall'
org/jruby/compiler/ASTCompiler.java:278:in `compile'
org/jruby/compiler/ASTCompiler.java:3173:in `compileNewline'
org/jruby/compiler/ASTCompiler.java:338:in `compile'
org/jruby/compiler/ASTCompiler.java:3765:in `compileRoot'
org/jruby/compiler/ASTCompiler.java:3736:in `compileRoot'
/usr/local/jruby-1.6.0.RC2/lib/ruby/site_ruby/shared/jruby/compiler.rb:158:in 
`compile_files_with_options'
org/jruby/RubyProc.java:256:in `call19'
/usr/local/jruby-1.6.0.RC2/lib/ruby/site_ruby/shared/jruby/compiler.rb:198:in 
`compile_files_with_options'
org/jruby/RubyArray.java:1676:in `each'
/usr/local/jruby-1.6.0.RC2/lib/ruby/site_ruby/shared/jruby/compiler.rb:182:in 
`compile_files_with_options'
/usr/local/jruby-1.6.0.RC2/lib/ruby/site_ruby/shared/jruby/compiler.rb:85:in 
`compile_argv'
/usr/local/jruby-1.6.0.RC2/bin/jrubyc:5:in `(root)'
Compilation FAILED: 1 error(s) encountered

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