Fix public methods in jruby