JRuby

Opening a file with a hash as options will raise an `ArgumentError: invalid access mode 4610` exception