JDK-7022382 : Project Coin: convert pack200 library code to use try-with-resources
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-25
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
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 7
7 b136Fixed
Related Reports
Relates :  
Description
There are a number of opportunities to use the new try-with-resources feature of Java 7 in the pack200 library code. The affected files are as follows:

src/share/classes/com/sun/java/util/jar/pack/BandStructure.java
src/share/classes/com/sun/java/util/jar/pack/Driver.java
src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java
src/share/classes/com/sun/java/util/jar/pack/PackageReader.java
src/share/classes/com/sun/java/util/jar/pack/PackageWriter.java
src/share/classes/com/sun/java/util/jar/pack/PropMap.java
src/share/classes/com/sun/java/util/jar/pack/UnpackerImpl.java
src/share/classes/com/sun/java/util/jar/pack/Utils.java

Comments
EVALUATION These files were split from the changeset generated for 7021582, since the pack200 changes will require additional testing.
25-02-2011