Make directio= method work with JRuby.