Skip to content

Is there a way to declare java_field with interface type? #2337

Closed
@vladson

Description

@vladson

Trying to do as following:

    class A
       java_field 'java.util.List clients'
    end

And getting TypeError: cannot convert instance of class org.jruby.RubyModule to class java.lang.Class
As far as I managed to understand, it is due to InterfaceJavaProxy.
In my example I managed to get rid of declaring interface type, but it may be needed anyway. Maybe I can help? Where should I start digging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions