[PATCH] FFI should allow passing nil as a callback parameter
------------------------------------------------------------

                 Key: JRUBY-3436
                 URL: http://jira.codehaus.org/browse/JRUBY-3436
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
            Reporter: Mike Dalessio
            Priority: Minor
         Attachments: 0001-allow-nil-to-be-passed-as-a-callback-param.patch

When nil is passed to a FFI function as a callback parameter, JRuby gives the 
following error:

CallbackManager.java:214:in `invoke': java.lang.ClassCastException: 
org.jruby.RubyNil cannot be cast to org.jruby.runtime.Block

A spec for this was added to ruby-ffi:

http://kenai.com/projects/ruby-ffi/sources/mercurial/revision/345

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