Integrated: 8299748: java/util/zip/Deinflate.java failing on s390x

Amit Kumar amitkumar at openjdk.org
Fri Apr 28 12:13:55 UTC 2023


On Mon, 30 Jan 2023 08:03:38 GMT, Amit Kumar <amitkumar at openjdk.org> wrote:

> DeInflate.java test fails on s390x platform because size for out1 array which is responsible for storing the compressed data is insufficient. And being unable to write whole compressed data on array, on s390 whole data can't be recovered after compression. This PR updates the check method in the DeInflate test to no longer rely on pre-defined lengths/sizes to determine whether deflate followed by an inflate of data worked correctly. These sizes can vary depending on the underlying zlib implementations. The updated check method now uses a `ByteArrayOutputStream` to deflate into and then inflate from. 
> 
> Thanks to @jaikiran for amazing PR description.

This pull request has now been integrated.

Changeset: fee02f06
Author:    Amit Kumar <amitkumar at openjdk.org>
Committer: Volker Simonis <simonis at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fee02f066879e77e55e217660daa46607778b6e8
Stats:     52 lines in 1 file changed: 31 ins; 2 del; 19 mod

8299748: java/util/zip/Deinflate.java failing on s390x

Reviewed-by: jpai, lancea, simonis, aturbanov

-------------

PR: https://git.openjdk.org/jdk/pull/12283


More information about the core-libs-dev mailing list