JDK-7022624 : Project Coin: convert java.io tests to use try-with-resources
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-25
  • Updated: 2011-04-27
  • Resolved: 2011-04-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.
7 b134Fixed
Related Reports
Relates :  
Some of the tests for java.io (including serialization) would benefit from using try-with-resources. This will ensure that files are closed, which will make test runs more reliable. This will also expose TWR to more use cases, which will help prove it during development of Java 7.

EVALUATION Files affected include: test/java/io/File/GetXSpace.java test/java/io/File/SetLastModified.java test/java/io/FileDescriptor/Finalize.java test/java/io/FileOutputStream/AtomicAppend.java test/java/io/OutputStreamWriter/Encode.java test/java/io/PrintStream/EncodingConstructor.java test/java/io/PrintStream/FailingConstructors.java test/java/io/Serializable/InvalidClassException/noargctor/Serialize/SubclassAcrossPackage.java test/java/io/Serializable/evolution/RenamePackage/install/SerialDriver.java test/java/io/Serializable/evolution/RenamePackage/test/SerialDriver.java test/java/io/Serializable/subclass/Test.java