RFR: 8159: openUncompressedStream supports compressed inputs on all streams

Carter Kozak duke at openjdk.org
Wed Dec 13 15:43:16 UTC 2023


Previously this function supported compressed inputs only when the provided stream supported mark/reset. By shifting the BufferedInputStream wrapper prior to compression checks, we can support consistent behavior regardless of the stream implementation.
The new tests in this commit fail without the accompanying change to `IOToolkit.java`.

I'd be grateful if anyone could help create a jmc issue for this, I lack perms to create a ticket as described in the [contributing docs](https://github.com/openjdk/jmc/blob/master/CONTRIBUTING.md#pull-requests).

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

Commit messages:
 - 8159: openUncompressedStream supports compressed inputs on all streams

Changes: https://git.openjdk.org/jmc/pull/539/files
 Webrev: https://webrevs.openjdk.org/?repo=jmc&pr=539&range=00
  Issue: https://bugs.openjdk.org/browse/JMC-8159
  Stats: 72 lines in 2 files changed: 52 ins; 6 del; 14 mod
  Patch: https://git.openjdk.org/jmc/pull/539.diff
  Fetch: git fetch https://git.openjdk.org/jmc.git pull/539/head:pull/539

PR: https://git.openjdk.org/jmc/pull/539


More information about the jmc-dev mailing list