On Tue, 9 Jun 2026 11:36:12 GMT, Alan Bateman <[email protected]> wrote:

>> Dusan Balek has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Real path used as filter
>
> test/langtools/tools/javac/SystemFilesClosed.java line 84:
> 
>> 82: 
>> 83:         try (StandardJavaFileManager fileManager = 
>> compiler.getStandardFileManager(null, null, null)) {
>> 84:             compiler.getTask(null, fileManager, null, 
>> List.of("--system", targetSystem), null, List.of(compilationUnit))
> 
> I'm puzzled by the need to fork lsof to look at the output of the current 
> process. I'm wondering if the return from call should be checked so that the 
> test fails if it returns false.

This test does not care about compilation result (if the source compiles 
without errors or not). It is intended to test whether compilation does not 
leave any files opened after it finishes (so the lsof is used).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31417#discussion_r3380944344

Reply via email to