JIT block invocation has wrong class (I think)
----------------------------------------------

                 Key: JRUBY-896
                 URL: http://jira.codehaus.org/browse/JRUBY-896
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 0.9.9
            Reporter: Thomas E Enebo
             Fix For: JRuby 1.0.0


>From test/testStruct.rb

{code}
# Struct creation with a block
a = Struct.new(:foo, :bar) {
  def hello
    "hello"
  end
}

test_equal("hello", a.new(0, 0).hello)
{code}

With JIT it cannot find hello.  I believe this is because block is using 
containing scope (main in this case) and defining it there...though the only 
thing I know for sure is that a does not have it.

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