Doesn't work on rbx and jruby