Fix JRuby method visibility issues