puts(begin; begin; end while nil; end) compilation fails
--------------------------------------------------------

                 Key: JRUBY-2114
                 URL: http://jira.codehaus.org/browse/JRUBY-2114
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
            Reporter: Dudley Flanders


The following shows the "Inconsistent stack height 0" error I get when trying 
to compile {{puts(begin; begin; end while nil; end)}} on trunk r5924:
{noformat}
[EMAIL PROTECTED] Code :> jruby -J-Djruby.compile.mode=FORCE 
-J-Djruby.jit.logging=true -J-Djruby.jit.logging.verbose=true -e 'puts(begin; 
begin; end while nil; end)'
could not compile: -e because of: "(class: __dash_e__, method: __file__ 
signature: 
(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;)
 Inconsistent stack height 0"
java.lang.VerifyError: (class: __dash_e__, method: __file__ signature: 
(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;)
 Inconsistent stack height 0
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
        at java.lang.Class.getConstructor0(Class.java:2671)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at org.jruby.Ruby.tryCompile(Ruby.java:435)
        at org.jruby.Ruby.tryCompile(Ruby.java:420)
        at org.jruby.Ruby.runNormally(Ruby.java:401)
        at org.jruby.Ruby.runFromMain(Ruby.java:291)
        at org.jruby.Main.run(Main.java:142)
        at org.jruby.Main.run(Main.java:88)
        at org.jruby.Main.main(Main.java:79)
Error, could not compile; pass -J-Djruby.jit.logging.verbose=true for more 
details
{noformat}

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