[
https://issues.apache.org/jira/browse/COMPRESS-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881858#comment-17881858
]
Gary D. Gregory commented on COMPRESS-687:
------------------------------------------
I added a new test
{{org.apache.commons.compress.compressors.pack200.Compress687Test}} which
passes locally for me on macOS 23.6.0 Darwin Kernel Version 23.6.0 using Java 8
and 22.
The tests also pass on GitHub on macOS, Windows, Ubuntu using Java 8, 11, 17,
21, 22.
The issue must be on your end unless you can provide a failing unit test.
> Pack200CompressorInputStream unexpected process finished on Java 22
> -------------------------------------------------------------------
>
> Key: COMPRESS-687
> URL: https://issues.apache.org/jira/browse/COMPRESS-687
> Project: Commons Compress
> Issue Type: Bug
> Components: Compressors
> Affects Versions: 1.27.1
> Reporter: Alexis Jehan
> Priority: Major
> Attachments: test-issue.7z
>
>
> Hello,
> Consider the following class:
> {code:java}
> public final class Foo {
> public static void main(final String... args) throws IOException {
> System.out.println("start");
> try (var inputStream =
> Foo.class.getClassLoader().getResourceAsStream("foo.pack")) {
> try (var compressInputStream = new
> Pack200CompressorInputStream(inputStream)) {
> compressInputStream.transferTo(System.out);
> }
> }
> System.out.println("end"); // never reached
> }
> }
> {code}
> Running it using Java 22, and the `--add-opens=java.base/java.io=ALL-UNNAMED`
> VM option, the result is:
> {noformat}
> start
> Process finished with exit code 0
> {noformat}
> The process is interrupted without any error.
> I have attached files.
> Thank you in advance.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)