TypeError converting java class to interface
--------------------------------------------

                 Key: JRUBY-6219
                 URL: https://jira.codehaus.org/browse/JRUBY-6219
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.2
            Reporter: Christopher Williams
            Assignee: Thomas E Enebo


>From 
>https://aptanastudio.tenderapp.com/discussions/problems/3334-cannot-install
{code}
An error occurred while processing the invoke block for the command Install 
Bundle in 
U:\3.7\configuration\org.eclipse.osgi\bundles\1519\1.cp\bundles\bundle-development.ruble\commands\install_bundle.rb:
 (TypeError) cannot convert instance of class 
org.jruby.java.proxies.ConcreteJavaProxy to interface 
org.eclipse.jface.viewers.IStructuredContentProvider 
org.jruby.exceptions.RaiseException: (TypeError) cannot convert instance of 
class org.jruby.java.proxies.ConcreteJavaProxy to interface 
org.eclipse.jface.viewers.IStructuredContentProvider
at 
#<Class:0x1011f84de>.request_item(U:/3.7/configuration/org.eclipse.osgi/bundles/1520/1/.cp/framework/ruble/ui.rb:147)
at 
#<Class:0x10018f9d7>.define_command(U:\3.7\configuration\org.eclipse.osgi\bundles\1519\1\.cp\bundles\bundle-development.ruble\commands\install_bundle.rb:51)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:268)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:232)
{code}

The code in question is, specifically line 2 here:
{code:title=ui.rb|borderStyle=solid}
dialog = org.eclipse.ui.dialogs.ListDialog.new(shell)
dialog.content_provider = org.eclipse.jface.viewers.ArrayContentProvider.new
dialog.label_provider = org.eclipse.jface.viewers.LabelProvider.new
dialog.input = items
{code}

in ListDialog, here's the method being called:
{code:title=ListDialog.java|borderStyle=solid}
public void setContentProvider(IStructuredContentProvider sp) {
  fContentProvider = sp;
}
{code}

--
This message is automatically generated by JIRA.
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