[ 
https://issues.apache.org/jira/browse/COMPRESS-687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved COMPRESS-687.
--------------------------------------
    Fix Version/s: 1.28.0
       Resolution: Fixed

Hello [~alexisj] 

This is now fixed in git master. Please review and try a local build of git 
master or a snapshot build from:

https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-compress/1.28.0-SNAPSHOT/

TY!

 

> org.apache.commons.compress.harmony.unpack200.Archive.unpack() should not log 
> to system out (the console)
> ---------------------------------------------------------------------------------------------------------
>
>                 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
>            Assignee: Gary D. Gregory
>            Priority: Major
>             Fix For: 1.28.0
>
>         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)

Reply via email to