Issue for MRI raised: https://github.com/ffi/ffi/issues/108 I don't have Java on my systems, so can't test with JRuby.