Forum: JRuby question about overloading and method selection with the wrong signature

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
remgo (Guest)
on 2009-02-01 00:58
(Received via mailing list)
Serabe, thanks for answering the last question so very, very rapidly!!

Another question about overloading and method selection with the wrong
signature

Jruby part:
   cells = DefaultGraphCell[3].new
   insert(cells)

How can I make sure that jruby calls the second method and not the first
(which it did)?
Java library part I am calling
    public void insert(Object cell) {...}
    public void insert(Object[] cells) {...}

Thanks, Rem
--
View this message in context:
http://www.nabble.com/question-about-overloading-a...
Sent from the JRuby - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.