Fix JRUBY-7091.