Avoid aliasing to an undefined method in JRuby environments running ruby 2.0.