Fix #998: Pathname @JRubyMethod methods should be public