How to get from JRuby a correctly typed ruby implementation of a Java interface?

◇◆丶佛笑我妖孽 提交于 2019-12-02 13:38:10

It should be, but unfortunately isn't quite wired up that way yet. For now, #java_implements and #java_signature are only used by the jrubyc --java command that creates a Java source file based on the Ruby class. You may want to consider using that for your Ruby integration.

We're aiming for this example to work for both precompiled scripts and runtime-executed scripts in the future. If you instead want this script to work as intended, try using include Java::some.package.ScriptDemoIf instead of java_implements.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!