JDK-8302685 : Some javac unit tests aren't reliably closing open files
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-02-16
  • Updated: 2024-04-16
  • Resolved: 2023-02-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b12Fixed
Related Reports
Relates :  
Relates :  
Description
Some unit tests aren't reliably closing open files; invariably these were written prior to (or without utilizing) try-with-resources.

Leaving files and other resources open can cause problems during automated builds, etc. See JDK-7127924 for example.

These tests should be updated to use try-with-resource.

Examples:
* 6400872/T6400872.java (line 127)
* 6638501/JarFromManifestFailure.java (line 147)
* T8152616.java (line 63, 69)

Comments
Changeset: 55e6bb6b Author: Archie L. Cobbs <archie.cobbs@gmail.com> Committer: Vicente Romero <vromero@openjdk.org> Date: 2023-02-27 16:21:57 +0000 URL: https://git.openjdk.org/jdk/commit/55e6bb6b85828f9a0ac37467ac2d28fd3349c64f
27-02-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12609 Date: 2023-02-16 21:32:44 +0000
16-02-2023