Ensure jruby compatibility