0
正如標題所示,我在運行程序時遇到了這個錯誤。正式參數不能爲常數def
這裏是我的ruby文件:
require 'java'
java_import org.arc.Something
def hello(Something)
Something.print()
end
,基本上我打電話這樣說:
invoke.invokeFunction("hello", new SomethingElse());