Closed uvlad7 closed 3 weeks ago
@uvlad7 I think you don't need to call with signature parameter. I believe you can call the method as
JavaEmbedUtils.initialize(ArrayList.new())
Because Rjb checks the method signature with given parameters. You should use _invoke when you call such as Foo#bar(short x) or Foo#bar(long x) because Rjb and Ruby can't judge given number was short or long.
I need to call
initialize(Ljava/util/List;)Lorg/jruby/Ruby;
static method, how can I specify thatLjava/util/List;
part? Does it work the same for instance methods?(It actually works like that
I'm just curious.)