Using DelegateClass with FFI::Struct fails to instantiate properly.
-------------------------------------------------------------------

                 Key: JRUBY-5780
                 URL: http://jira.codehaus.org/browse/JRUBY-5780
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
    Affects Versions: JRuby 1.6.1
         Environment: Linux and Mac OSX
            Reporter: Chung Shin Yee
            Priority: Minor
         Attachments: fix_ffi_struct.patch, 
test_ffi_struct_with_delegateclass.rb

Subclasses of DelegateClass(A) is unable to instantiate properly when A is a 
kind of FFI::Struct. The created instance has {#__getobj__} returns nil.

The constructor of Delegate suppose to invoke {#__setobj__}, however, the 
constructor does not get invoked when the DelegateClass is used with 
FFI::Struct derivatives.

Detailed discussion and fix is available at [https://gist.github.com/959291]

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