NPE when yielding method
------------------------

                 Key: JRUBY-2557
                 URL: http://jira.codehaus.org/browse/JRUBY-2557
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.1
         Environment: Ubuntu Gutsy, java-6-sun-1.6.0.03
            Reporter: Tamas de J
            Assignee: Thomas E Enebo


#The last line throws NPE at 
org.jruby.runtime.callback.ReflectionCallback.execute(ReflectionCallback.java:138)
# Under MRI (1.8.6) it works fine.
class A
  def a
    p "hello"
  end
end

def y 
  yield
end

p = A.new.method :a

p.call
y(&p)

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