Could we apply this patch to jruby core please? :-)