Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-687

Pack200CompressorInputStream unexpected process finished on Java 22

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.27.1
    • None
    • Compressors
    • None

    Description

      Hello,

      Consider the following class:

      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
      	}
      }
      

      Running it using Java 22, and the `--add-opens=java.base/java.io=ALL-UNNAMED` VM option, the result is:

      start
      
      Process finished with exit code 0
      

      The process is interrupted without any error.

      I have attached files.

      Thank you in advance.

      Attachments

        1. test-issue.7z
          1.0 kB
          Alexis Jehan

        Activity

          People

            Unassigned Unassigned
            alexisj Alexis Jehan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: