If you pass a Ruby Array to a java method that expects a Java primitive array it should be automatic.
Also in this vein We need a nicer syntax for making Arrays from Java The following is not so nice:
arr = JObject.new(2)
arr = 1
arr = 2