to_java fails to convert arguments for jna call
-----------------------------------------------

                 Key: JRUBY-3106
                 URL: http://jira.codehaus.org/browse/JRUBY-3106
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.4
         Environment: windows
            Reporter: Steve Riegel
         Attachments: to_array_bug.rb

Attached file demonstrates problem.

Works correctly using jruby-1.1.1.

Stack trace under 1.1.4 shows JNA is not seeing java objects as the result of 
args.to_java:

  $ jruby to_array_bug.rb
  com/sun/jna/Function.java:457:in `convertArgument': 
java.lang.IllegalArgumentException: Unsupported argument type 
org.jruby.RubyBoolean at parameter 1 of function OpenEventA (NativeException)

I see some bugs which may be related  to this in jira, suggesting it might be 
fixed in 1.1.5.

In the meantime, is there a workaround I can use in 1.1.4?

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