GZipFile#close does not return IO object as MRI does #5197
MRI documents (and implements) that #close on GZipFile and subclasses should return the associated IO object. JRuby returns nil.
In MRI I can do this:
writer = Zlib::GzipWriter.new(str) writer.write(data) writer.close.string
which fails in JRuby when trying to call
The text was updated successfully, but these errors were encountered:
JRuby doesn't seem to return the IO object the way MRI does, so don't rely on that. jruby/jruby#5197