New closure conversion should prefer methods with convertable args over those 
without
-------------------------------------------------------------------------------------

                 Key: JRUBY-1183
                 URL: http://jira.codehaus.org/browse/JRUBY-1183
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.0
            Reporter: Charles Oliver Nutter
            Assignee: Nick Sieger


We should be able to do java.lang.Thread.new { puts 'hello' } and expect to get 
back a thread object with the given proc as its Runnable. However it appears 
that the conversion of the proc to runnable gets superceded by the no-arg 
version of the Thread constructor, and so the converted proc is never used.

It seems that when passing a block to a Java method, we should first try to 
find methods for which a converted closure would work, and then fall back on 
versions without convertible interfaces.

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