Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
1.27.1
-
None
-
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.