Re: RFR: 8302685: Some javac unit tests aren't reliably closing open files [v2]

2023-02-25 Thread Archie L . Cobbs
On Sat, 25 Feb 2023 19:06:49 GMT, Andrey Turbanov wrote: >> Archie L. Cobbs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove extra whitespace. > > test/langtools/tools/javac/T8071847/T8071847.java line 86: > >> 84: File writeH

Re: RFR: 8302685: Some javac unit tests aren't reliably closing open files [v2]

2023-02-25 Thread Archie L . Cobbs
> Some javac unit tests aren't reliably closing open files. Many were written > prior to (or without utilizing) try-with-resources. > > Leaving files and other resources open can cause problems during automated > builds, etc. > > This patch updates these tests to use try-with-resource. > > Sid